Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Detached Criteria for two tables/objects

 
Bhanu S Chatta
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

can some one give me a clue on how to set the detached criteria for two tables/objects? Basically I need the results from both tables. I know how to set the detached criteria for single object/class as below:

DetachedCriteria.forClass(Bhanu.class);

What should I do I want to seach two tables one after another to get the results from both tables?

Thank you in advance,
Bhanu
 
Bhanu S Chatta
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please let me know whether I can achive getting the cumulative results after searching the two tables using Detached Criteria or not.

Thank you,
Bhanu
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!