About PostLoad

manual

JPA Lifecycle Events

Explains how to use JPA lifecycle events (client side triggers) with callback methods and listener classes.... ( ) { } @PostLoad javax.persistence.PostLoad JPA annotation Is used to specify callback methods for the ...

 
api-jpa

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.... javax.persistence.PreUpdate javax.persistence.PostLoad javax.persistence.PostPersist ...

 
api-jpa

javax.persistence.PostLoad

Is used to specify callback methods for the corresponding lifecycle event.(Annotation of JPA)

 
api-jdo

postLoad(event)

Invoked whenever a persistent instance is loaded from the data store.(Method of javax.jdo.listener.LoadLifecycleListener)

 
api-jdo

FetchGroup.postLoad

Whether we should load this group as part of the post load process.(Annotation Element of javax.jdo.annotations.FetchGroup)

 
forum_thread

Handling deleted references

Hi support team, I have a problem when using DELETE query to delete Entity instances. We use the following hierarchy: ... and no version. To simplify the use case I added a @PostLoad method to the User class, which simply checks if the profile instance ... is null and create a new profile instance: @ PostLoad private void checkProfileAvailable ( ) ...

 
forum_thread

Adding EntityListener Throws Unexpected Internal Exception

I tried adding EntityListener for a entity class and an exception was thrown. I followed similar as mentioned on the documentation but no luck. My entity class looks like below: ... class MyListener {   @ PostLoad public void onPostLoad ( Object o ) { Logger. info ( "PostLoad call." ) ; }   @ PreUpdate ...

 
api-jdo

setPostLoad(postLoad)

Set the post-load property of this FetchGroup.(Method of javax.jdo.FetchGroup)

 
api-jdo

javax.jdo.FetchGroup

FetchGroup represents a named fetch group for a specific class or interface.(Interface of JDO)

 
forum_thread

Managing software release cycles.

How do you manage software release cycles with objectDB? For example we might have different installation of a given web application, and we might need to introduce new fields with default values or to change something in the database "structure".  How can we apply the update script without downloading the entire DB file? Are there any command line tools like sqlPlus to connect to a DB and execute queries / scripts? ... some cases you may have to write code. You can use the PostLoad event to adjust old objects to new format when they are loaded. ...