@Override public Object clone() { TypeClp clone = new TypeClp(); clone.setTypeId(getTypeId()); clone.setGroupId(getGroupId()); clone.setName(getName()); return clone; }
@Override public void setModelAttributes(Map<String, Object> attributes) { Long typeId = (Long) attributes.get("typeId"); if (typeId != null) { setTypeId(typeId); } Long groupId = (Long) attributes.get("groupId"); if (groupId != null) { setGroupId(groupId); } String name = (String) attributes.get("name"); if (name != null) { setName(name); } }
public void setPrimaryKey(long primaryKey) { setTypeId(primaryKey); }