-->
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.  [ 1 post ] 
Author Message
 Post subject: q: travelling associations found/using ClassMetadata
PostPosted: Wed Oct 15, 2003 12:37 pm 
Newbie

Joined: Wed Sep 17, 2003 8:26 am
Posts: 16
hi all,

i'm doing to do the following from sec. 7 of the manual:


meta is an instance of ClassMetadata
obj is an instance of an unknown Class (but a hibernated obj)

String[] propertyNames = meta.getPropertyNames();
Type[] propertyTypes = meta.getPropertyTypes();
Object[] propertyValues = meta.getPropertyValues( obj );

while i'm iterating over the propertyValues, i'd like to travel associations to other Objects (one-to-many assoc. etc) but an Object x = propertyValues[i] for a propertyTypes[i].isEntityType() always returns null.

how can i travel associations using metadata-info?

thx, jan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.