org.apache.tapestry5.internal.hibernate
Class EntityPersistentFieldStrategy

java.lang.Object
  extended by org.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy
      extended by org.apache.tapestry5.internal.hibernate.EntityPersistentFieldStrategy
All Implemented Interfaces:
PersistentFieldStrategy

public class EntityPersistentFieldStrategy
extends AbstractSessionPersistentFieldStrategy

Persists Hibernate entities by storing their id in the session.

See Also:
PersistedEntity

Constructor Summary
EntityPersistentFieldStrategy(org.hibernate.Session session, Request request)
           
 
Method Summary
protected  java.lang.Object convertApplicationValueToPersisted(java.lang.Object newValue)
           
protected  java.lang.Object convertPersistedToApplicationValue(java.lang.Object persistedValue)
           
 
Methods inherited from class org.apache.tapestry5.internal.services.AbstractSessionPersistentFieldStrategy
didReadChange, discardChanges, gatherFieldChanges, postChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityPersistentFieldStrategy

public EntityPersistentFieldStrategy(org.hibernate.Session session,
                                     Request request)
Method Detail

convertApplicationValueToPersisted

protected java.lang.Object convertApplicationValueToPersisted(java.lang.Object newValue)
Overrides:
convertApplicationValueToPersisted in class AbstractSessionPersistentFieldStrategy

convertPersistedToApplicationValue

protected java.lang.Object convertPersistedToApplicationValue(java.lang.Object persistedValue)
Overrides:
convertPersistedToApplicationValue in class AbstractSessionPersistentFieldStrategy


Copyright © 2007-2010 Apache Software Foundation. All Rights Reserved.