Relationship « Batch « JPA Q&A





1. Hibernate Relationship Mapping/Speed up batch inserts    stackoverflow.com

I have 5 MySQL InnoDB tables: Test,InputInvoice,InputLine,OutputInvoice,OutputLine and each is mapped and functioning in Hibernate. I have played with using StatelessSession/Session, and JDBC batch size. I have removed any generator classes ...

2. Storing large data in chunks: Hibernate @OneToMany relationships    stackoverflow.com

I've been using Hibernate to store a parent-child relationship using @OneToMany with an @JoinColumn for some time, it has worked great. But now I've reached a point where the total size ...

3. one-to-one relationships with batch-size and fetch="SEL    forum.hibernate.org

Newbie Joined: Wed Sep 14, 2005 12:17 pm Posts: 13 I have a persistent class (Claim) that has a one-to-one relationship with another class (ClaimCommunicationActivity). The code works fine, and when I look at the generated SQL, I get a select from CLAIM with a left outer join on COMMACTVTY. My problem is that COMMACTVTY is defined as a view, and ...

4. How to batch update on many-to-many relationship using HQL?    forum.hibernate.org

How do you write a *batch* update for a many-to-many relationship? I can't find any documentation or examples on this. The Contact object has a many-to-many relationship to the Owner object. This is my feeble hql attempt (although i've tried many other variations): update Contact set Contact.owners.ownerId = :newOwnerId where Contact.owners.ownerId = :ownerId I get error: java.lang.IllegalArgumentException: node to traverse cannot ...