Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > hibernate question ?

Thread Tools

hibernate question ?

Posts: n/a
I have a an entity parent A, and it has a Set od entity-s B. Entity B
has custom hibernate annotation
all-delete-orphan. Let's say that I have one parent A in DB, and 10 B in
db. When I delete one
entity in set, and write entityManager.merge(A) it deletes that child
record in db,and that's great, but
the problem is that I have a sitauation where I have one parent(A) in
db, which has 20000 child records,
and where i delete one of 20000 records and write entityManager.merge(A)
it run's out of memory.
Any suggestions how to solve that ?

Thanks in advance.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hibernate LazyInitializationException in web application Struts asMVC, Spring as IOC and Hibernate as ORM layer Amit Jain Java 7 04-27-2009 10:27 AM
HIBERNATE - java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration Eleanna Skouta Java 2 12-09-2008 02:09 AM
Hibernate cannot find hibernate.cfg.xml jstorta Java 1 01-19-2008 01:45 PM
Hibernate Syncronizer now generates code for Hibernate 3.0 Java 0 07-14-2005 05:47 AM
[HIBERNATE] [EVALUATION] - Gavin King Censors Hibernate Forum Ilias Lazaridis Java 0 12-27-2004 04:26 AM