-->
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: Daten aus Mapping-Tabelle
PostPosted: Wed Aug 29, 2007 12:49 pm 
Newbie

Joined: Wed Aug 29, 2007 12:39 pm
Posts: 1
Hallo allerseits,

angenommen ich habe ein many-to-many Beziehung.
Die zugehörige Mapping-Tabelle besitzt aber zusätzlich noch eine Spalten, die etwas über die Verbindung der 2 Tabellen aussagt. Wie komme ich per Hibernate an diesen Wert ran?

Tabelle1
----------
key_tab1


Tabelle2
-----------
key_tab2


Mapping-Tab
---------------
key_tab1
key_tab2
***WERT***

Vielen Dank,
bin leider Newbie und dankbar für die Nachhilfe ;-)
Grüße,
Ralf


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 04, 2007 7:32 am 
Expert
Expert

Joined: Tue Nov 23, 2004 7:00 pm
Posts: 570
Location: mostly Frankfurt Germany
Das Stichwort ist ternary -> Referenz. Evt. sind auch komponenten Mappings interessant. Oder im einfachsten Fall einfach 1:n:1 verwenden.

_________________
Best Regards
Sebastian
---
Training for Hibernate and Java Persistence
Tutorials for Hibernate, Spring, EJB, JSF...
eBook: Hibernate 3 - DeveloperGuide
Paper book: Hibernate 3 - Das Praxisbuch
http://www.laliluna.de


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.