KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > johnmammen > betterpetshop > bo > Bannerdata


1 package johnmammen.betterpetshop.bo;
2
3 import java.io.Serializable JavaDoc;
4 import org.apache.commons.lang.builder.ToStringBuilder;
5
6
7 /**
8  * @hibernate.class
9  * table="bannerdata"
10  *
11 */

12 public class Bannerdata implements Serializable JavaDoc {
13
14     /** identifier field */
15     private String JavaDoc favcategory;
16
17     /** persistent field */
18     private String JavaDoc bannername;
19
20     /** full constructor */
21     public Bannerdata(String JavaDoc favcategory, String JavaDoc bannername) {
22         this.favcategory = favcategory;
23         this.bannername = bannername;
24     }
25
26     /** default constructor */
27     public Bannerdata() {
28     }
29
30     /**
31      * @hibernate.id
32      * generator-class="assigned"
33      * type="java.lang.String"
34      * column="favcategory"
35      *
36      */

37     public String JavaDoc getFavcategory() {
38         return this.favcategory;
39     }
40
41     public void setFavcategory(String JavaDoc favcategory) {
42         this.favcategory = favcategory;
43     }
44
45     /**
46      * @hibernate.property
47      * column="bannername"
48      * length="80"
49      * not-null="true"
50      *
51      */

52     public String JavaDoc getBannername() {
53         return this.bannername;
54     }
55
56     public void setBannername(String JavaDoc bannername) {
57         this.bannername = bannername;
58     }
59
60     public String JavaDoc toString() {
61         return new ToStringBuilder(this)
62             .append("favcategory", getFavcategory())
63             .toString();
64     }
65
66 }
67
Popular Tags