-->
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: manyToMany: join-table mit drei Entity-Beans?
PostPosted: Fri Jul 04, 2008 8:10 am 
Regular
Regular

Joined: Tue Jun 03, 2008 1:12 pm
Posts: 84
Location: germany
Hallo,

habe drei Entity-Beans:

User:
Spalte: idUser


Rolle:
Spalte: idRolle


Gruppe:
Spalte: idGruppe


diese drei sind in der Datebank ebenfalls vorhanden und nun sollen diese über eine einzige join-table mit einer ManyToMany-Relation verbunden werden:

d.h. in der Datenbank ist diese Join-Table vorhanden:

USER_ROLLE_GRUPPE
Spalte: ID_USER (FK, PK)
Spalte: ID_ROLLE (FK, PK)
Spalte: ID_GRUPPE (F, PK)

Wie mappe ich das mit JPA bzw. Hibernate OHNE zusätzliche Entity-Bean anzuglegen? Kann ich das mit JPA-API machen oder muss ich das mit der Hibernate-API machen?

Danke vorab!!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 08, 2008 5:42 am 
Regular
Regular

Joined: Tue Jun 03, 2008 1:12 pm
Posts: 84
Location: germany
double


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.