зеркало из
https://github.com/iharh/notes.git
synced 2025-10-30 13:16:07 +02:00
m
Этот коммит содержится в:
родитель
12ae24c723
Коммит
3836dae4de
@ -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/
|
||||||
|
|||||||
22
pl/java/libfws/spring/data/jpa/features/mappings.txt
Обычный файл
22
pl/java/libfws/spring/data/jpa/features/mappings.txt
Обычный файл
@ -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
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user