Restriction « Key « JPA Q&A





1. Criteria Restriction on many-to-one foreign key    forum.hibernate.org

I have 2 classes that are connected with a foreign key which is a many to one relationship in mapping. Problem is when i want to make a criteria based on the entity of the connected table. First class is the employee class and the 2nd one is the department they are bound to. when i query a criteria with restriction ...