# Jpa和spring系列注解表

```yaml
   Author: Gentleman.Hu
   Create Time: 2020-10-20 15:41:01
   Modified by: Gentleman.Hu
   Modified time: 2020-10-20 16:13:14
   Email: justfeelingme@gmail.com
   Home: https://crushing.xyz
   Description: Spring系列注解表
```

## JPA注解cheat sheet

> [all\_jpa\_annotation\_list](https://dzone.com/articles/all-jpa-annotations-mapping-annotations) [>pdf<\_minibook\_for\_JPA](http://enos.itcollege.ee/~jpoial/java/naited/JPA_Mini_Book.pdf) [cheat\_sheet\_of\_jpa](https://hajba.hu/2014/11/25/java-persistence-api-annotation-cheat-sheet/)

| JPA Annotations                  |
| -------------------------------- |
|                                  |
| 1. @Access                       |
|                                  |
| 2. @AssociationOverride          |
|                                  |
| 3. @AssociationOverrides         |
|                                  |
| 4. @AttributeOverride            |
|                                  |
| 5. @AttributeOverrides           |
|                                  |
| 6. @Basic                        |
|                                  |
| 7. @Cacheable                    |
|                                  |
| 8. @CollectionTable              |
|                                  |
| 9. @Column                       |
|                                  |
| 10. @ColumnResult                |
|                                  |
| 11. @ConstructorResult           |
|                                  |
| 12. @Convert                     |
|                                  |
| 13. @Converter                   |
|                                  |
| 14. @Converts                    |
|                                  |
| 15. @DiscriminatorColumn         |
|                                  |
| 16. @DiscriminatorValue          |
|                                  |
| 17. @ElementCollection           |
|                                  |
| 18. @Embeddable                  |
|                                  |
| 19. @Embedded                    |
|                                  |
| 20. @EmbeddedId                  |
|                                  |
| 21. @Entity                      |
|                                  |
| 22. @EntityListeners             |
|                                  |
| 23. @EntityResult                |
|                                  |
| 24. @Enumerated                  |
|                                  |
| 25. @ExcludeDefaultListeners     |
|                                  |
| 26. @ExcludeSuperclassListeners  |
|                                  |
| 27. @FieldResult                 |
|                                  |
| 28. @ForeignKey                  |
|                                  |
| 29. @GeneratedValue              |
|                                  |
| 30. @Id                          |
|                                  |
| 31. @IdClass                     |
|                                  |
| 32. @Index                       |
|                                  |
| 33. @Inheritance                 |
|                                  |
| 34. @JoinColumn                  |
|                                  |
| 35. @JoinColumns                 |
|                                  |
| 36. @JoinTable                   |
|                                  |
| 37. @Lob                         |
|                                  |
| 38. @ManyToMany                  |
|                                  |
| 39. @ManyToOne                   |
|                                  |
| 40. @MapKey                      |
|                                  |
| 41. @MapKeyClass                 |
|                                  |
| 42. @MapKeyColumn                |
|                                  |
| 43. @MapKeyEnumerated            |
|                                  |
| 44. @MapKeyJoinColumn            |
|                                  |
| 45. @MapKeyJoinColumns           |
|                                  |
| 46. @MapKeyTemporal              |
|                                  |
| 47. @MappedSuperclass            |
|                                  |
| 48. @MapsId                      |
|                                  |
| 49. @NamedAttributeNode          |
|                                  |
| 50. @NamedEntityGraph            |
|                                  |
| 51. @NamedEntityGraphs           |
|                                  |
| 52. @NamedNativeQueries          |
|                                  |
| 53. @NamedNativeQuery            |
|                                  |
| 54. @NamedQueries                |
|                                  |
| 55. @NamedQuery                  |
|                                  |
| 56. @NamedStoredProcedureQueries |
|                                  |
| 57. @NamedStoredProcedureQuery   |
|                                  |
| 58. @NamedSubgraph               |
|                                  |
| 59. @OneToMany                   |
|                                  |
| 60. @OneToOne                    |
|                                  |
| 61. @OrderBy                     |
|                                  |
| 62. @OrderColumn                 |
|                                  |
| 63. @PersistenceContext          |
|                                  |
| 64. @PersistenceContexts         |
|                                  |
| 65. @PersistenceProperty         |
|                                  |
| 66. @PersistenceUnit             |
|                                  |
| 67. @PersistenceUnits            |
|                                  |
| 68. @PostLoad                    |
|                                  |
| 69. @PostPersist                 |
|                                  |
| 70. @PostRemove                  |
|                                  |
| 71. @PostUpdate                  |
|                                  |
| 72. @PrePersist                  |
|                                  |
| 73. @PreRemove                   |
|                                  |
| 74. @PreUpdate                   |
|                                  |
| 75. @PrimaryKeyJoinColumn        |
|                                  |
| 76. @PrimaryKeyJoinColumns       |
|                                  |
| 77. @QueryHint                   |
|                                  |
| 78. @SecondaryTable              |
|                                  |
| 79. @SecondaryTables             |
|                                  |
| 80. @SequenceGenerator           |
|                                  |
| 81. @SqlResultSetMapping         |
|                                  |
| 82. @SqlResultSetMappings        |
|                                  |
| 83. @StoredProcedureParameter    |
|                                  |
| 84. @Table                       |
|                                  |
| 85. @TableGenerator              |
|                                  |
| 86. @Temporal                    |
|                                  |
| 87. @Transient                   |
|                                  |
| 88. @UniqueConstraint            |
|                                  |
| 89. @Version                     |

## Spring系列注解对照表

> [Spring CheatSheet](https://github.com/We2one/Notes/tree/07fadddfb519e81cee2c6d83e75feadfb89aa509/java-ways/snippets/adevguide.com/all-spring-annotations-cheat-sheet/README.md) [Annotation\_CheatSheet](https://github.com/We2one/Notes/tree/07fadddfb519e81cee2c6d83e75feadfb89aa509/java-ways/snippets/jrebel.com/blog/spring-annotations-cheat-sheet/README.md) [Gist\_CheatSheet\_With\_Color](https://www.javagists.com/spring-boot-cheatsheet)

![](https://cdn.jsdelivr.net/gh/gentlemanhu/public-store/images/spring_annotation_cheat_sheet.png)
