View Javadoc

1   /*
2    *  Account
3    *
4    *  author nambi sankaran
5    *  copyright (C) 2009 nambi sankaran.
6    *
7    *  This program is free software: you can redistribute it and/or modify
8    *  it under the terms of the GNU General Public License as published by
9    *  the Free Software Foundation, either version 3 of the License, or
10   *  (at your option) any later version.
11   *
12   *  This program is distributed in the hope that it will be useful,
13   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   *  GNU General Public License for more details.
16   *
17   *  You should have received a copy of the GNU General Public License
18   *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
19   *
20   */
21  package net.sf.emarket.account.domain;
22  
23  import java.io.Serializable;
24  import java.sql.Timestamp;
25  
26  import javax.persistence.Entity;
27  import javax.persistence.Id;
28  
29  @Entity
30  public class Account implements Serializable {
31  
32  	private static final long serialVersionUID = 2044367451140120917L;
33  
34      @Id
35      private String acctId = null;
36  	private String id=null;
37      private String type = null;
38      private String status = null;
39  	private String currency = null;
40      private String country = null;
41      
42      private Timestamp lastUpdated = null;
43      
44      public static final String TYPE_MARGIN = "MARGIN";
45      public static final String TYPE_CASH = "CASH";
46      
47      public static final String OWNERSHIP_INDIVIDUAL = "INDIVIDUAL";
48      public static final String OWNERSHIP_JOINT = "JOINT";
49      public static final String OWNERSHIP_SYSTEM = "SYSTEM";
50      
51      public static final String STATUS_PENDING = "PENDING";
52      public static final String STATUS_ACTIVE = "ACTIVE";
53      public static final String STATUS_INACTIVE = "INACTIVE";
54      public static final String STATUS_DISABLED = "DISABLED";
55      
56      public String getAcctId() {
57  		return acctId;
58  	}
59  	public void setAcctId(String acctId) {
60  		this.acctId = acctId;
61  	}
62  	public String getId() {
63  		return id;
64  	}
65  	public void setId(String id) {
66  		this.id = id;
67  	}
68  	public String getType() {
69  		return type;
70  	}
71  	public void setType(String type) {
72  		this.type = type;
73  	}
74  	public String getStatus() {
75  		return status;
76  	}
77  	public void setStatus(String status) {
78  		this.status = status;
79  	}
80      public String getCurrency() {
81  		return currency;
82  	}
83  	public void setCurrency(String currency) {
84  		this.currency = currency;
85  	}
86  	public String getCountry() {
87  		return country;
88  	}
89  	public void setCountry(String country) {
90  		this.country = country;
91  	}
92  	public Timestamp getLastUpdated() {
93  		return lastUpdated;
94  	}
95  	public void setLastUpdated(Timestamp lastUpdated) {
96  		this.lastUpdated = lastUpdated;
97  	}
98  }