Hi, I am facing Duplicate Association Path error in this Hibernate Join ,
Here is the DB Relationships, User -> Vendor Vendor -> Business -> Clients Vendor -> Technology -> Applications
Here is my code, DetachedCriteria user = DetachedCriteria.forClass("User.class");
user.createAlias("vendor", "V1"); user.createAlias("vendor", "V2");
DetachedCriteria client = user.createCriteria("V1.business").createCriteria("clients"); DetachedCriteria Tech = user.createCriteria("V2.Technlogy");
The other way i tried is,
DetachedCriteria client = user.createCriteria("vendor").createCriteria("business").createCriteria("clients"); DetachedCriteria Tech = user.createCriteria("vendor").createCriteria("Technlogy");
I am getting the duplicate Association Path error on the Vendor.
Anything wrong in this association? Can anyone help me please?
|