ObjectDB ObjectDB

javax.persistence.PrePersist - JPA annotation

Annotation PrePersist

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.
JPA 1.0
Learn how to define and use JPA callback methods in Chapter 3 of the ObjectDB/JPA manual.
This annotation is a marker annotation (with no elements).