from user u, company c where c.name = u.name
how can do the same thing using DetachedCriteria, I did it using HQL. but thats not what I wanted ?
thnx in advance
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
from user u, company c where c.name = u.name
how can do the same thing using DetachedCriteria, I did it using HQL. but thats not what I wanted ?
thnx in advance
If name is a String then you should write:
instead.c.name.equals(u.name);
Since I have no idea what DetachedCriteria is I have no idea what you are asking.
Improving the world one idiot at a time!
I presume this is a Hibernate question, so moved to JDBC forum. That being said, given the context (or lackthereof) most would have no clue what you are talking about. Recommend you elaborate a lot more if you want help. Or, if this truly a Hibernate question, ask at the source with the necessary information. Oh wait...you already did (but with the same lack of information)
This thread has been cross posted here:https://forum.hibernate.org/viewtopic.php?f=1&t=1026297
Although cross posting is allowed, for everyone's benefit, please read: