What is the best query strategy and entities configuration when using a second level cache
问题 What is the best query strategy and the best configuration for my entities when the second level cache is activated. For example I have two entities User and Group with these relations : One User to Many Group : the groups owned by the user. Here a collection of Group in the User class and a User attribute (the owner) in the Group class. Many User to Many Group with attributes (status, date etc.) : the members of the groups. Because of the additionnals attibutes there is a specific class to