List of JPA annotations

 Here is a comprehensive list of JPA annotations:


## Entity Annotations

- @Entity

- @Table

- @SecondaryTable

- @SecondaryTables


## Field and Property Annotations

- @Id

- @GeneratedValue

- @Column

- @Transient

- @Version

- @Temporal

- @Lob

- @Enumerated

- @Basic


## Relationship Annotations

- @OneToOne

- @OneToMany

- @ManyToOne

- @ManyToMany

- @JoinColumn

- @JoinTable

- @MapKey

- @OrderBy


## Inheritance Annotations

- @Inheritance

- @DiscriminatorColumn

- @DiscriminatorValue


## Callback Annotations

- @EntityListeners

- @PrePersist

- @PostPersist

- @PreUpdate

- @PostUpdate

- @PreRemove

- @PostRemove

- @PostLoad


## Query Annotations

- @NamedQuery

- @NamedQueries

- @NamedNativeQuery

- @NamedNativeQueries

- @SqlResultSetMapping

- @SqlResultSetMappings


## Embeddable Annotations

- @Embeddable

- @EmbeddedId

- @Embedded

- @AttributeOverride

- @AttributeOverrides


## Other Annotations

- @Access

- @UniqueConstraint

- @Cacheable

- @Index

- @Convert

- @Converter

- @PrimaryKeyJoinColumn

- @PrimaryKeyJoinColumns

- @SequenceGenerator

- @TableGenerator

- @AssociationOverride

- @AssociationOverrides

- @MappedSuperclass

- @ExcludeDefaultListeners

- @ExcludeSuperclassListeners


This list covers the main JPA annotations used for mapping Java objects to database tables, defining relationships, and configuring various aspects of persistence[1][2][3][4][5].


Citations:

[1] https://www.java4coding.com/contents/jpa/all-jpa-annotations

[2] https://dzone.com/articles/all-jpa-annotations-mapping-annotations

[3] https://www.digitalocean.com/community/tutorials/jpa-hibernate-annotations

[4] https://forcedotcom.github.io/java-sdk/jpa-annotations-standard

[5] https://www.techferry.com/articles/hibernate-jpa-annotations.html

[6] https://www.datanucleus.org/products/accessplatform/jpa/annotations.html

[7] https://www.oracle.com/middleware/technologies/toplink-jpa-annotations.html

Comments

Popular posts from this blog

Spring boot versions : Detailed explanation of the different versions and releases of Spring Boot (AI Generated)

download youtube videos java program ( AI generated)

Java Spring Framework versions and their major releases ( AI Generated )