Interface Persistable<ID extends>

Type Parameters:
ID - Java type of the primary key column.
All Superinterfaces:
All Known Implementing Classes:
BitemporalWrapper, ImmutablePersistentEntity, MutablePersistentEntity, PersistentEntity, PersistentEnumeration

public interface Persistable<ID extends>

Generic persistent entity contract used by the PersistentEntityDao.

Implementations of this interface must follow some general rules regarding JPA object-relational mapping concepts:

There are basically two approaches to implementing Object.hashCode() and Object.equals(Object) methods:

As for the inheritance mapping strategy, it is up to the user to mark specific root nodes within the persistent entity hierarchy via the Inheritance annotation as appropriate. Keep in mind that the default JPA inheritance strategy is set to InheritanceType.SINGLE_TABLE along with its implications on the underlying database schema.

See Also:

Copyright © 2008-2009 ANASOFT and contributors. All Rights Reserved.