I have two entities stored in seperate database tables - Employee - Manager
Every Employee has a Manager(or vice versa: Every Manager has several Employees) Get Manager with his employees. I tried Hibernate Query by example, but it is not returning anything.. Criteria criteria = session.createCriteria(Manager.class). add(Example.create(manager).excludeZeroes()); if(manager.getEmployee() != null) { criteria.createCriteria("employee").add( Example.create(manager.getEmployee()).excludeZeroes()); } Can anybody help. Thanks -- View this message in context: http://www.nabble.com/Hibernate-Example.create-tf1278198s2369.html#a13048884 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]