Spring/Hibernate loadAll returning the same identity too many times...

D

Daniel Pitts

I'm calling getHibernateTemplate().loadAll(TopLevel.class).

In the database, I have one entry for TopLevel, which has 3 children
and 12 grandchildren.



I'm getting back a list with 12 copies of the same instance of
TopLevel.



Anybody have any suggestions? The same code works in a different app,
so my thoughts are its some sort of configuration issue (maybe with my
hibernate.cfg.xml), but I don't know what could be the problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top