-->
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: Beziehungen herstellen ...
PostPosted: Tue May 24, 2005 10:12 am 
Newbie

Joined: Tue May 24, 2005 9:30 am
Posts: 3
Hibernate version: 3.0.3

Wir haben leider keine Idee, wie folgendes (mit XDoclets über den Gettern) sinnvoll dargestellt werden kann:

Eine Tabelle "captions" bietet sprachabhängige Texte an:

id langId captId caption
--------------------------------------
1 0 1 "Chapter 1"
2 1 1 "Kapitel 1"
3 0 2 "Section 1"
4 1 2 "Abschnitt 1"
5 0 3 "Chapter 2"
6 1 3 "Kapitel 2"

Mehrere Objekte nutzen Beschriftungen aus der Tabelle "captions", abhängig von der aktuellen Sprache, z.B. Objekte aus "chapters":

id captId ...
-------------------------------------
1 1 ...
2 3 ...

oder Objekte aus "sections":

id captId ...
-------------------------------------
1 2 ...

Die Beziehungen sind nicht über (einen) Fremdschlüssel herstellbar, weil ja mehrere Tabellen Beziehungen in die Tabelle "captions" halten.
Wie macht man sowas?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 31, 2005 5:11 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Mit Filtern, ist wie ein dynamischer View.


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.