-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Many To Many-how to automatically update teh assoc table
PostPosted: Mon Jul 13, 2009 2:07 pm 
Newbie

Joined: Fri Jul 10, 2009 1:19 pm
Posts: 2
Greetings

first off, apologies if this has been asked and answered multiple times. I've searched through the forum as best I can and have not found this particular question, so hopfully I'm not clogging the place with a repeat question.

here's the deal

I've got a database set up in similar fashion to the example in the hibernate reference manual (see section 1.3.2 of the 3.3.1 manual). So I've got the person table, events table, and the person_events table (the association table that governs the many to many relationship between person and events).

I can add a new person with associated new events just fine (and vice versa) with hibernate handling it all with its divine will.

However I cannot seem to get the magic configuration so that hibernate automatically updates the person_events table. Is this possible? or must one simply utilze HQL/SQL to do this?

Thanks in advance to any that can help.

Trippy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.