Brand, Category, Pattern Size unique
This commit is contained in:
@@ -15,7 +15,7 @@ public class Brand {
|
|||||||
@Column(length=36)
|
@Column(length=36)
|
||||||
private String oid;
|
private String oid;
|
||||||
|
|
||||||
@Column(length=20)
|
@Column(length=20, unique=true)
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@OneToMany(mappedBy="brand")
|
@OneToMany(mappedBy="brand")
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public class Category {
|
|||||||
@Column(length=36)
|
@Column(length=36)
|
||||||
private String oid;
|
private String oid;
|
||||||
|
|
||||||
@Column(length=20)
|
@Column(length=20, unique=true)
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@OneToMany(mappedBy="category")
|
@OneToMany(mappedBy="category")
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ public class Pattern {
|
|||||||
@Column(length=36)
|
@Column(length=36)
|
||||||
private String oid;
|
private String oid;
|
||||||
|
|
||||||
@Column(length=20)
|
@Column(length=20, unique=true)
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@OneToMany(mappedBy="pattern")
|
@OneToMany(mappedBy="pattern")
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public class Size {
|
|||||||
@Column(length=36)
|
@Column(length=36)
|
||||||
private String oid;
|
private String oid;
|
||||||
|
|
||||||
@Column(length=20)
|
@Column(length=20, unique=true)
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
|
|||||||
Reference in New Issue
Block a user