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)
Mapstruct one to many ,fill DTO row by row
There is the Customer entity which has a one to many relationship to entity Address,so there is a List<Address> addresses=new ArrayList<> in Customer.Entity Address has an Email field.
For...
microwth
Votes: 0
Answers: 1
Map database record to entity without knowing its id
Basically I have the system where there is entity called Dictionary, where all dictionary entries are stored (like countries in example below), these entries are prefilled in database using database s...
bladekp
Votes: 0
Answers: 1
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