Subversion Repositories SmartDukaan

Rev

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

Rev 31490 Rev 31491
Line 2... Line 2...
2
 
2
 
3
import java.util.Objects;
3
import java.util.Objects;
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;
7
import javax.persistence.Id;
9
import javax.persistence.Id;
8
import javax.persistence.Table;
10
import javax.persistence.Table;
9
 
11
 
10
@Entity
12
@Entity
11
@Table(name = "catalog.brand", schema = "catalog")
13
@Table(name = "catalog.brand", schema = "catalog")
12
public class BrandCatalog {
14
public class BrandCatalog {
13
 
15
 
14
	@Id
16
	@Id
15
	@Column(name = "id", columnDefinition = "int(11)")
17
	@Column(name = "id", columnDefinition = "int(11)")
-
 
18
	@GeneratedValue(strategy = GenerationType.IDENTITY)
16
	private int id;
19
	private int id;
17
 
20
 
18
	@Column(name = "name")
21
	@Column(name = "name")
19
	private String name;
22
	private String name;
20
 
23