Subversion Repositories SmartDukaan

Rev

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

Rev 22009 Rev 22859
Line 2... Line 2...
2
 
2
 
3
import java.io.Serializable;
3
import java.io.Serializable;
4
 
4
 
5
import javax.persistence.Column;
5
import javax.persistence.Column;
6
import javax.persistence.Entity;
6
import javax.persistence.Entity;
7
import javax.persistence.GeneratedValue;
-
 
8
import javax.persistence.GenerationType;
-
 
9
import javax.persistence.Id;
7
import javax.persistence.Id;
10
import javax.persistence.NamedQueries;
8
import javax.persistence.NamedQueries;
11
import javax.persistence.NamedQuery;
9
import javax.persistence.NamedQuery;
12
import javax.persistence.Table;
10
import javax.persistence.Table;
13
import javax.persistence.UniqueConstraint;
11
import javax.persistence.UniqueConstraint;
Line 30... Line 28...
30
	
28
	
31
	public ShopAddress() {
29
	public ShopAddress() {
32
	}
30
	}
33
	
31
	
34
	@Id
32
	@Id
35
	@Column(name="id", unique=true, updatable=false)
-
 
36
	@GeneratedValue(strategy = GenerationType.IDENTITY)
-
 
37
	private int id;
-
 
38
	
-
 
39
	@Column(name="shop_id", unique=false, updatable=false)
33
	@Column(name="shop_id", unique=false, updatable=false)
40
	private int shopId;
34
	private int shopId;
41
	
35
	
-
 
36
	@Id
42
	@Column(name="address_id", unique = false)
37
	@Column(name="address_id", unique = false)
43
	private int addressId;
38
	private int addressId;
44
 
-
 
45
	public int getId() {
-
 
46
		return id;
-
 
47
	}
-
 
48
	
-
 
49
	public void setId(int id) {
-
 
50
		this.id = id;
-
 
51
	}
-
 
52
	
39
	
53
	public int getShopId() {
40
	public int getShopId() {
54
		return shopId;
41
		return shopId;
55
	}
42
	}
56
 
43