Muztaba Hasanat wrote:In this case `Account` entity has no relation with the `Organization` entity directly. `Account` entity has the relation via `Book`. How can I achieve this using hibernate criteria dynamic query ?
You need to create seperate Join objects for each of the required joins, then you can create the needed conditions and finally create your query. This is how you can create the required Join objectsNow you have the different Join objects and you can add the necessary conditionsAnd finally you can create the query using these building blocks.