Tutorial by Examples

Hibernate can use two types of fetch when you are mapping the relationship between two entities: EAGER and LAZY. In general, the EAGER fetch type is not a good idea, because it tells JPA to always fetch the data, even when this data is not necessary. Per example, if you have a Person entity and th...
Hibernate has some strategies of inheritance. The JOINED inheritance type do a JOIN between the child entity and parent entity. The problem with this approach is that Hibernate always bring the data of all involved tables in the inheritance. Per example, if you have the entities Bicycle and Mounta...

Page 1 of 1