PK - the the of the entity@MappedSuperclass public abstract class AbstractPersistable<PK extends Serializable> extends Object implements Persistable<PK>
equals(Object) and hashCode() based on that id.public PK getId()
getId in interface Persistable<PK extends Serializable>protected void setId(PK id)
id - the id to setpublic boolean isNew()
isNew in interface Persistable<PK extends Serializable>Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.