org.nakedobjects.plugins.hibernate.objectstore.persistence.algorithm
Class SimplePersistAlgorithm
java.lang.Object
org.nakedobjects.runtime.persistence.objectstore.algorithm.PersistAlgorithmAbstract
org.nakedobjects.plugins.hibernate.objectstore.persistence.algorithm.SimplePersistAlgorithm
- All Implemented Interfaces:
- PersistAlgorithm
public class SimplePersistAlgorithm
- extends PersistAlgorithmAbstract
A PersistAlgorithm which simply saves the object made persistent.
This allows Hibernate to determine which objects should be saved - mappings
should be created with cascade="save-update".
An alternative is to let Naked Objects do the work, using the
TwoPassPersistAlgorithm.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimplePersistAlgorithm
public SimplePersistAlgorithm()
name
public java.lang.String name()
makePersistent
public void makePersistent(NakedObject object,
ToPersistObjectSet toPersistObjectSet)
- Parameters:
toPersistObjectSet - - will actually be implemented by the PersistenceSession.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.