ObjectDB ObjectDB

Internal Website Search

1-4 of 4 resultsRefresh
116

javax.persistence.PostPersist

javax.persistence Annotation PostPersist 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
61

JPA Lifecycle Events

MyEntityWithCallbacks { @PrePersist void onPrePersist() {} @PostPersist void onPostPersist ... (added to the EntityManager). @PostPersist - after storing a new entity in the database (during commit or ... MyListener { @PrePersist void onPrePersist(Object o) {} @PostPersist void onPostPersist(Object
17

Auto Date for Creation and Update

methods are invoked. You may want to check @PostPersist and other callbacks as
17

JPA lifecycle events across processes

Hi, wondering if it's possible to listen for changes in one process from another process? ie: process A changes an entity process B listens for @PostPersist thanks dmoshal David Moshal This is not supported. You may be able to implement your own cross process event listeners based on the JPA event

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support