-->
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.  [ 2 posts ] 
Author Message
 Post subject: HIBERNATE RELACION MANY TO MANY
PostPosted: Wed Mar 17, 2010 10:39 pm 
Newbie

Joined: Wed Nov 25, 2009 3:58 pm
Posts: 2
I WANT TO AGREGATE A NEW COLUMN IN RELATION MAY TO MANY. THE JOIN TABLE HAVE THE IDS OF BOTH TABLES BUT I WANT ONE COLUMN MORE.
THE TABLES ARE MEDICAMENTO AND PARASITO THE JOIN TABLE IN THE RELATION MANY TO MANY HAVE MEDICAMENTO_ID AND PARASITO_ID, I WANT TO INSERT THE COLUMN ELECCION. HOW CAN I DO THAT..?

PLEASE HELP ME..


Top
 Profile  
 
 Post subject: Re: HIBERNATE RELACION MANY TO MANY
PostPosted: Thu Mar 18, 2010 3:40 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Book 'Java Persistence with Hibernate' chapter 7.2.3: Adding columns to join tables
This section explains exactly what you need.
Unfortunately it is to much for me to re-type it all here as this chapter 5 entire pages long.


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

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.