JPA Join Table With Additional State

JPA has its puzzles and from time to time it is useful to write down that tricky solution for our mapping needs.This entry describes a ManyToMany relationship with an additional state in the intermediate table. All my examples are related to the Arena-PUJ project, the pet project I am hard working nowadays. Arena is an online system to manage academic competitions, and within its several tables and mappings, there is a corner case I will explain below. forts, let me define the entities and its relationship for modeling the data of the Institutions X Competition relationship.

Continue reading over at dzone...

Leave a Reply