-->
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: Lesen der Mapping-Informationen in Java
PostPosted: Fri Jan 20, 2006 8:34 am 
Newbie

Joined: Fri Jan 20, 2006 8:26 am
Posts: 3
Hallo,
gibt es eine Möglichkeit die Mapping-Informationen von Java aus zu lesen. Ich nutze Hibernate3 im EntityMode.MAP.
Die konkreten Probleme sind:
- Kann ich für eine Klasse herausfinden welche Properties im <composite-id> sind?
- Kann ich für eine 'Relation' herausfinden welche Properties zueinander gemappt sind?
Die Informationen brauche ich um daraus eigene Queries zu bilden.

Danke,
Oliver


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 20, 2006 10:24 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
wie wärs aus org.hibernate.cfg.Configure

Code:
   public PersistentClass getClassMapping(String persistentClass)

_________________
dont forget to rate !


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.