org.synyx.hades.domain
Interface Persistable<PK extends java.io.Serializable>

Type Parameters:
PK - the type of the identifier
All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
Auditable<U,PK>
All Known Implementing Classes:
AbstractAuditable, AbstractPersistable

public interface Persistable<PK extends java.io.Serializable>
extends java.io.Serializable

Simple interface for entities.

Author:
Oliver Gierke

Method Summary
 PK getId()
          Returns the id of the entity.
 boolean isNew()
          Returns if the Persistable is new or was persisted already.
 

Method Detail

getId

PK getId()
Returns the id of the entity.

Returns:
the id

isNew

boolean isNew()
Returns if the Persistable is new or was persisted already.

Returns:
if the object is new


Copyright © 2009-2010 Synyx GmbH & Co. KG. All Rights Reserved.