KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > subclasspropertyref > Account


1 //$Id: Account.java,v 1.1 2005/03/06 16:34:02 oneovthafew Exp $
2
package org.hibernate.test.subclasspropertyref;
3
4 /**
5  * @author Gavin King
6  */

7 public class Account {
8     private String JavaDoc accountId;
9     private Customer customer;
10     private Person person;
11     private char type;
12     /**
13      * @return Returns the user.
14      */

15     public Customer getCustomer() {
16         return customer;
17     }
18     /**
19      * @param user The user to set.
20      */

21     public void setCustomer(Customer user) {
22         this.customer = user;
23     }
24     /**
25      * @return Returns the accountId.
26      */

27     public String JavaDoc getAccountId() {
28         return accountId;
29     }
30     /**
31      * @param accountId The accountId to set.
32      */

33     public void setAccountId(String JavaDoc accountId) {
34         this.accountId = accountId;
35     }
36     /**
37      * @return Returns the type.
38      */

39     public char getType() {
40         return type;
41     }
42     /**
43      * @param type The type to set.
44      */

45     public void setType(char type) {
46         this.type = type;
47     }
48     public Person getPerson() {
49         return person;
50     }
51     
52     public void setPerson(Person person) {
53         this.person = person;
54     }
55     
56
57 }
58
Popular Tags