Top Description Methods
jakarta.persistence

public @Interface PrePersist

extends Annotation
Annotations
@Target:METHOD
@Retention:RUNTIME
Imports
java.lang.annotation.Target, .Retention

Specifies a callback method for the corresponding lifecycle event. This annotation may be applied to methods of an entity class, a mapped superclass, or a callback listener class.

A generated primary key value is available when this callback occurs only for UUID, TABLE, or SEQUENCE primary key generation. For IDENTITY primary key generation, the generated primary key is not available when this callback occurs.

Since
1.0

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString