01: //$Id: Simple08.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 Simple08 {
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: @NoColumn
34: @Column(name="int_col")
35: // conflicting annotations -- will blow
36: public long getIntCol() {
37: return intCol;
38: }
39:
40: public void setIntCol(long intCol) {
41: this .intCol = intCol;
42: }
43:
44: public String getStringCol() {
45: return stringCol;
46: }
47:
48: public void setStringCol(String stringCol) {
49: this.stringCol = stringCol;
50: }
51:
52: }
|