Check ur DB is Transient. ??
if detach pblm rise they may not be Transient so u test that one !!
if u need help tell me !??
Main Topics
Browse All TopicsI have a table called INV_HEADER which is associated to many other tables.
When I execute HQL or Detached criterial to get few records of INV_HEADER, It is executing quries for associted tables of INV_HEADER also.
Lets think that, INV_HEADER is got 10 associations. 10 tables PKs are FKs in INV_HEADER table
lets think that INV_STATUS and SO_HEADER I want to get only InvStatus and SoHeader objects should only come along with InvHeader Object when its query executed.
Here is detached Criteria and HBM.xml attached.
Please guide me
Thanks
Srini
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
There is no Error. Its keep on executing queries for long time. In the real secnario, it has to bring 3 inv_header objects from 1000 records at max in the inv_header table.
As I mentioned in the question, It also executing quries for so_header table and inv_status tables queries for its internal associated objects, etc... this chain is keep on going. Becuase, for each association it was defined lazy=false.
I can do lazy=true is one solution. but If I want to get only 2 assciated objects instread of all 10 associated objects.. inthe InvHeader, What query that i need to write?
Please hlep me.
check this link may be usefull
http://www.javalobby.org/a
Business Accounts
Answer for Membership
by: dravidnsrPosted on 2009-09-16 at 22:13:51ID: 25353044
Can u send the Error Stack !!