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.| Constructor and Description |
|---|
AbstractPersistable() |
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-2014–2014 Pivotal Software, Inc.. All rights reserved.