KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > db > orm > test > BadGirl


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package jodd.db.orm.test;
4
5 import jodd.db.orm.meta.DbTable;
6 import jodd.db.orm.meta.DbColumn;
7
8 @DbTable("GIRL")
9 public class BadGirl extends BadGirlBase {
10
11     public BadGirl() {
12     }
13
14     public BadGirl(Integer JavaDoc id, String JavaDoc name, String JavaDoc speciality) {
15         this.fooid = id;
16         this.fooname = name;
17         this.foospeciality = speciality;
18     }
19
20     @DbColumn("NAME")
21     public String JavaDoc fooname;
22
23     // ---------------------------------------------------------------- toString
24

25     public String JavaDoc toString() {
26         return "Girl{" +
27                 "id=" + fooid +
28                 ", name='" + fooname + '\'' +
29                 ", speciality='" + foospeciality + '\'' +
30                 '}';
31     }
32 }
33
Popular Tags