Junior — Senior
Hibernate: how to design the relationship between clients and their orders
livecode
Task condition
There are two tables — customer and order. In most cases (about 80%), only customer data needs to be retrieved, and in the remaining 20%, both customer data and related orders. It is necessary to implement this scheme in Hibernate, determining which entities to create, which annotations to apply, and which fetch type (eager/lazy) to use.