Subversion Repositories SmartDukaan

Rev

Rev 21714 | Rev 21924 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21714 Rev 21895
Line 7... Line 7...
7
import javax.persistence.Entity;
7
import javax.persistence.Entity;
8
import javax.persistence.GeneratedValue;
8
import javax.persistence.GeneratedValue;
9
import javax.persistence.GenerationType;
9
import javax.persistence.GenerationType;
10
import javax.persistence.Id;
10
import javax.persistence.Id;
11
import javax.persistence.Table;
11
import javax.persistence.Table;
12
import javax.persistence.UniqueConstraint;
-
 
13
 
12
 
14
/**
13
/**
15
 * This class basically contains address details
14
 * This class basically contains address details
16
 * 
15
 * 
17
 * @author ashikali
16
 * @author ashikali
18
 *
17
 *
19
 */
18
 */
20
@Entity
19
@Entity
21
@Table(name="user.address", schema = "user", uniqueConstraints = {@UniqueConstraint(columnNames = {"name", "line_1", "line_2", "landmark", "city", "state", "pin", "country", "phone"})})
20
@Table(name="fofo.customer_address", schema = "fofo")
22
public class CustomerAddress implements Serializable{
21
public class CustomerAddress implements Serializable{
23
	
22
	
24
	private static final long serialVersionUID = 1L;
23
	private static final long serialVersionUID = 1L;
25
	
24
	
26
	public CustomerAddress() {
25
	public CustomerAddress() {
Line 47... Line 46...
47
	private String city;
46
	private String city;
48
	
47
	
49
	@Column(name = "state")
48
	@Column(name = "state")
50
	private String state;
49
	private String state;
51
	
50
	
52
	@Column(name = "pin", length = 10)
51
	@Column(name = "pin_code", length = 10)
53
	private String pinCode;
52
	private String pinCode;
54
	
53
	
55
	@Column(name = "country", length = 100)
54
	@Column(name = "country", length = 100)
56
	private String country;
55
	private String country;
57
	
56
	
58
	@Column(name = "phone", length = 20)
57
	@Column(name = "phone_number", length = 20)
59
	private String phoneNumber;
58
	private String phoneNumber;
60
	
59
	
61
	@Column(name = "customer_id")
60
	@Column(name = "customer_id")
62
	private int customerId;
61
	private int customerId;
63
	
62