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 27... Line 25...
27
})
25
})
28
public class RetailerBrand implements Serializable{
26
public class RetailerBrand implements Serializable{
29
	
27
	
30
	private static final long serialVersionUID = 1L;
28
	private static final long serialVersionUID = 1L;
31
	
29
	
32
	@Id
-
 
33
	@Column(name="id", unique=true, updatable=false)
-
 
34
	@GeneratedValue(strategy = GenerationType.IDENTITY)
-
 
35
	private int id;
-
 
36
	
-
 
37
	public RetailerBrand() {
30
	public RetailerBrand() {
38
	}
31
	}
39
	
32
	
40
	public int getId() {
-
 
41
		return id;
-
 
42
	}
-
 
43
	public void setId(int id) {
-
 
44
		this.id = id;
-
 
45
	}
33
	@Id
46
	@Column(name="retailer_id", unique=false, updatable=false)
34
	@Column(name="retailer_id", unique=false, updatable=false)
47
	private int retailerId;
35
	private int retailerId;
48
	
36
	
-
 
37
	@Id
49
	@Column(name="brand_id", unique = false)
38
	@Column(name="brand_id", unique = false)
50
	private int brandId;
39
	private int brandId;
51
 
40
 
52
	public int getRetailerId() {
41
	public int getRetailerId() {
53
		return retailerId;
42
		return retailerId;