@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface PrePersist
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.
- 从以下版本开始:
- Java Persistence 1.0