com.anasoft.os.daofusion.entity
Interface Persistable<ID extends java.io.Serializable>

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

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

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.

Author:
vojtech.szocs
See Also:
PersistentEntityDao



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