KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > hibernate > ImportedProduct


1 package test.hibernate;
2
3 import java.util.Locale JavaDoc;
4
5 /**
6  * @author Administrator
7  *
8  * @hibernate.subclass
9  * discriminator-value="imported"
10  * dynamic-update="true"
11  * dynamic-insert="true"
12  * select-before-update="false"
13  */

14 public class ImportedProduct extends Product {
15     
16     private String JavaDoc origin;
17     private Locale JavaDoc locale;
18
19     /**
20      * Constructor for ImportedProduct.
21      */

22     public ImportedProduct() {
23         super();
24     }
25
26     /**
27      * @hibernate.property
28      * not-null="true"
29      * Returns the origin.
30      * @return String
31      */

32     public String JavaDoc getOrigin() {
33         return origin;
34     }
35
36     /**
37      * Sets the origin.
38      * @param origin The origin to set
39      */

40     public void setOrigin(String JavaDoc origin) {
41         this.origin = origin;
42     }
43
44     /**
45      * @hibernate.property
46      * @return Locale
47      */

48     public Locale JavaDoc getLocale() {
49         return locale;
50     }
51
52     /**
53      * Sets the locale.
54      * @param locale The locale to set
55      */

56     public void setLocale(Locale JavaDoc locale) {
57         this.locale = locale;
58     }
59
60 }
61
Popular Tags