01: //$Id: Simple07.java 11 2007-08-19 20:05:36Z jcamaia $
02:
03: package net.sf.persist.tests.common;
04:
05: import net.sf.persist.annotations.Column;
06: import net.sf.persist.annotations.NoColumn;
07: import net.sf.persist.annotations.Table;
08:
09: @Table(name="simple")
10: public class Simple07 {
11:
12: private long id;
13: //private String stringCol;
14: private long intCol;
15:
16: @Column(autoGenerated=true)
17: public long getId() {
18: return id;
19: }
20:
21: public void setId(long id) {
22: this .id = id;
23: }
24:
25: @NoColumn
26: public String getHelloWorld() {
27: return "hello world";
28: }
29:
30: public void setHelloWorld(String stringCol) { /* do nothing */
31: }
32:
33: public long getIntCol() {
34: return intCol;
35: }
36:
37: public void setIntCol(long intCol) {
38: this .intCol = intCol;
39: }
40:
41: // won't find a match for foo
42: public String getFoo() {
43: return "foo";
44: }
45:
46: public void setFoo(String foo) { /* do nothing */
47: }
48:
49: }
|