Этот коммит содержится в:
Ihar Hancharenka 2023-07-12 21:38:53 +03:00
родитель 12ae24c723
Коммит 3836dae4de
3 изменённых файлов: 32 добавлений и 0 удалений

Просмотреть файл

@ -1,4 +1,12 @@
https://docs.jboss.org/envers/docs/#configuration https://docs.jboss.org/envers/docs/#configuration
https://spring.io/projects/spring-data-envers
https://github.com/hibernate/hibernate-orm/blob/main/hibernate-envers/src/main/java/org/hibernate/envers/configuration/EnversSettings.java
spring.jpa.properties
org.hibernate.envers:
audit_strategy: class-name
audit_strategy_validity_store_revend_timestamp: bool
store_data_at_delete: bool
2023 2023
https://habr.com/ru/post/715918/ https://habr.com/ru/post/715918/

Просмотреть файл

@ -0,0 +1,22 @@
https://www.baeldung.com/jpa-joincolumn-vs-mappedby
In a One-to-Many/Many-to-One relationship,
the owning side is usually defined on the many side of the relationship (joincolumn -> FK)
The value of mappedBy (at non-owning reference side)
is the name of the association-mapping attribute (java) on the owning side
cascade attr - on the owning side
https://www.baeldung.com/jpa-join-column
The @JoinColumn annotation combined with a @OneToOne mapping indicates
that a given column in the owner entity refers to a primary key in the reference entity:
@JoinFormula
@ManyToOne
EAGER by default
@OneToMany
LAZY by default
2021
https://habr.com/ru/articles/542328/

Просмотреть файл

@ -3,3 +3,5 @@ https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#projections
2020 2020
https://thorben-janssen.com/spring-data-jpa-query-projections/ https://thorben-janssen.com/spring-data-jpa-query-projections/
https://habr.com/ru/company/otus/blog/722060/ https://habr.com/ru/company/otus/blog/722060/
Can have multiple @Entity for the same table