python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Why Spring JPA still retrieves associated entities with FetchMode.LAZY?
I have Account entity with 3 associated entities inside with configuration like that:
@OneToOne(
fetch = FetchType.LAZY,
cascade = CascadeType.ALL,
mappedBy = "account"
...
andrew17
Votes: 0
Answers: 2
How to implement a search table with many to many relationship in Hibernate with a 3rd class entity
I am trying to learn Hibernate to create on startup the Db from entities, but I have only found articles suggesting how to implement many to many relationship with only 2 entities, but what if I wante...
PontiacGTX
Votes: 0
Answers: 1
@PreUpdate does not work on OneToOne relationship
We have these two entities
@Entity
@Table
public class A {
// id and other fields
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "a")
@JoinColumn(na...
Irinel
Votes: 0
Answers: 1
JAP: table column with name id but not primary key
I have a table with the columns vendorid and id (and more, omitted here; using lombok for definition):
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "vendor_store&qu...
Eddie
Votes: 0
Answers: 1