Quantcast
Channel: Vlad Mihalcea
Viewing all articles
Browse latest Browse all 177

The best way to map multiple entities on the same table

$
0
0

Introduction In this article, we are going to see what is the best way to map multiple entities on the same table. There are several advantages to mapping multiple entities on the same database table: To avoid loading large columns (e.g., JSON) To avoid N+1 query issues for bidirectional @OneToOne associations Before we start investigating the best way to map multiple entities on the same table, if you wonder why you even need to use one-to-one table relationships, then check out this article first. Domain Model Let’s assume we are using the... Read More

The post The best way to map multiple entities on the same table appeared first on Vlad Mihalcea.


Viewing all articles
Browse latest Browse all 177

Trending Articles