01: //$Id: Simple01.java 7 2007-08-17 19:32:18Z jcamaia $
02:
03: package net.sf.persist.tests.common;
04:
05: import net.sf.persist.annotations.Column;
06: import net.sf.persist.annotations.Table;
07:
08: @Table(name="simple")
09: public class Simple01 {
10:
11: private long id;
12: private String stringCol;
13: private long intCol;
14:
15: @Column(autoGenerated=true)
16: public long getId() {
17: return id;
18: }
19:
20: public void setId(long id) {
21: this .id = id;
22: }
23:
24: @Column(name="string_col")
25: // valid name -- ok
26: public String getStringCol() {
27: return stringCol;
28: }
29:
30: public void setStringCol(String stringCol) {
31: this .stringCol = stringCol;
32: }
33:
34: @Column(name="hello_world")
35: // invalid name -- will blow
36: public long getIntCol() {
37: return intCol;
38: }
39:
40: public void setIntCol(long intCol) {
41: this.intCol = intCol;
42: }
43:
44: }
|