I have 2 entity in 1:1 relationship
I have 2 entity detail view having entityPicker GI->GIC and GIC->GI
If I set GI from ““GIC detail”” it works . creating the association.
in 2 or more GIC … ( but is 1 to1 )
If I set GIC from"" GI detail “” it DOESNT work
it never chenge the value … of the association
WHERE DID I WONG ???
@Entity
public class GI {
@OneToOne(fetch = FetchType.LAZY, mappedBy = “gaIn”)
private GIC gaInCo;
}
@Entity
public class GIC {
@JoinColumn(name = “GA_IN_ID”)
@OneToOne(fetch = FetchType.LAZY)
private GI gaIn;
}
GIC table on postgreSQL 16
|20388e44-5464-0d73-3860-efac70c5161a|2b6b6588-4bb5-54c1-0c5f-1d64716ccec0|Gate instance config 0002|||22||||||||1||admin|2024-05-16 19:36:06.181+02||2024-05-16 19:36:06.181+02||
|—|—|—|—|—|—|—|—|—|—|—|—|—|—|—|—|—|—|—|—|—|
|aaeeea5f-27cf-b7e5-307e-b94ecf174252|4c3cbda8-047f-4c39-30ff-789d4c701bcd|2b6b6588-4bb5-54c1-0c5f-1d64716ccec0|Gate instance config 0001|||22||||||||3||admin|2024-05-15 12:26:49.749+02|admin|2024-05-16 19:09:54.979+02||