-->
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: working with metadata at runtime
PostPosted: Tue Sep 14, 2004 6:57 am 
Newbie

Joined: Tue Sep 14, 2004 6:15 am
Posts: 1
Hibernate version: 2.1.4

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

Hello all:

As an exercise, I'm trying to build a generic database browser that could read at runtime mapping data about primary and foreign keys.

How can I fetch data from <key-property> elements?

For example, from this element:
<key-property
name="actTmprlAssocIx"
column="ACT_TMPRL_ASSOC_IX"
type="long"
length="15"
>
I need to get "name" and "column" values. I've tried with PersistentClass, with no success (I only got the column name).

Thank you very much.

Best Regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 14, 2004 4:09 pm 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
See the FAQ:
http://www.hibernate.org/118.html#A19

HTH
Ernst


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.