unique tag
git-svn-id: svn://svn.dsv.su.se/scipro/scipro/trunk@522 73ecded7-942e-4092-bab0-0e58ef0ee984
This commit is contained in:
parent
b412584243
commit
0f743cdfd8
@ -4,6 +4,7 @@
|
||||
package se.su.dsv.scipro.data.dataobjects;
|
||||
|
||||
import javax.persistence.Cacheable;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
@ -27,6 +28,7 @@ public class Tag extends DomainObject {
|
||||
@GeneratedValue
|
||||
private Long id;
|
||||
|
||||
@Column(unique=true)
|
||||
private String tag;
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user