Can someone please explain to me @MapsId in hibernate? I\'m having a hard time understanding it.
@MapsId
It would be great if one could explain it with an examp
MapsId lets you use the same primary key between two different entities/tables. Note: when you use MapsId, the CASCADE.ALL flag becomes useless, and you will need to make sure that your entities are saved manually.
CASCADE.ALL