21,11 → 21,21 |
public class ObjectType implements java.io.Serializable |
{ |
/** |
* Version ID for serialization |
*/ |
private static final long serialVersionUID = 1L; |
|
/** |
* ObjectEntity type ID for a term |
*/ |
public static final int TERM = 1; |
|
private int objectTypeId; |
/** |
* ObjectEntity type ID for a relationship |
*/ |
public static final int RELATIONSHIP = 2; |
|
private int id; |
private String name; |
private Set<ObjectEntity> objects = new HashSet<ObjectEntity>(0); |
|
33,28 → 43,28 |
{ |
} |
|
public ObjectType(int objectTypeId) |
public ObjectType(int id) |
{ |
this.objectTypeId = objectTypeId; |
this.id = id; |
} |
|
public ObjectType(int objectTypeId, String name, Set<ObjectEntity> objects) |
public ObjectType(int id, String name, Set<ObjectEntity> objects) |
{ |
this.objectTypeId = objectTypeId; |
this.id = id; |
this.name = name; |
this.objects = objects; |
} |
|
@Id |
@Column(name = "object_type_id", unique = true, nullable = false) |
public int getObjectTypeId() |
@Column(name = "id", unique = true, nullable = false) |
public int getId() |
{ |
return this.objectTypeId; |
return this.id; |
} |
|
public void setObjectTypeId(int objectTypeId) |
public void setId(int objectTypeId) |
{ |
this.objectTypeId = objectTypeId; |
this.id = objectTypeId; |
} |
|
@Column(name = "name", unique = true, length = 45) |