About PostLoad

1-10 of 20Refresh
Manual
89

JPA Lifecycle Events

() {} @PostLoad void onPostLoad() {} @PreUpdate void onPreUpdate() {} @PostUpdate void ... flush). @PostLoad - after an entity has been retrieved from the database. @PreUpdate ... o) {} @PostLoad void onPostLoad(Object o) {} @PreUpdate void onPreUpdate(Object o
JDO Doc
88

setPostLoad(postLoad)

Method javax.jdo.FetchGroup FetchGroup setPostLoad(   boolean postLoad ) Set the post-load property of this FetchGroup. Parameters: postLoad - Returns: the FetchGroup Throws: JDOUserException - if the FetchGroup is unmodifiable Since: JDO 2.2
JDO Doc
85

FetchGroup.postLoad

Annotation Element javax.jdo.annotations.FetchGroup String postLoad Whether we should load this group as part of the post load process. Returns: whether we should load this group as part of the post load process. Default value: "" Since: JDO 2.1
JPA Doc
85

javax.persistence.PostLoad

javax.persistence Annotation PostLoad Target: Callback methods Is used to specify callback methods for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class. Since: JPA 1.0 Learn how to define and use JPA
JDO Doc
85

postLoad(event)

Method javax.jdo.listener.LoadLifecycleListener void postLoad(   InstanceLifecycleEvent event ) Invoked whenever a persistent instance is loaded from the data store. It is called after the method LoadCallback.jdoPostLoad is invoked on the persistent instance. Parameters: event - the load event. Since: JDO 2.0
JPA Doc
46

JPA Annotations for Callback Methods

Reference (JavaDoc) of JPA 2 event callback and listener annotations, including @PrePersist(2), @PreRemove, @PreUpdate, @PostLoad, @PostPersist, @PostRemove and @PostUpdate.
JDO Doc
10

javax.jdo.FetchGroup

(boolean postLoad) Set the post-load property of this FetchGroup. Set the post-load property of this FetchGroup. Parameters: postLoad - Returns: the FetchGroup Throws: JDOUserException
JDO Doc
7

javax.jdo.annotations.FetchGroup

String postLoad Whether we should load this group as part of the post load process
JDO Doc
7

javax.jdo.listener.LoadLifecycleListener

javax.jdo.listener Interface LoadLifecycleListener Superinterfaces: InstanceLifecycleListener This interface is implemented by listeners to be notified of load events. Since: JDO 2.0 void postLoad( InstanceLifecycleEvent event) Invoked whenever a persistent instance is loaded from the data store
Forum
4

Handling deleted references

initial values and no version. To simplify the use case I added a @PostLoad method to the User class ... and create a new profile instance: @PostLoad private void checkProfileAvailable ... since one can simply add @PostLoad method and recheck all instances if they are broken or not and fix them (e.g