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: Hibernate spelling contest
PostPosted: Fri Aug 12, 2005 8:49 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
I'm calling org.hibernate.mapping.Property.getName(). For SetType properties, using a configuration generated by the tools suite, this method returns "Bears" and "Daisies" for tables "bear" and "daisy".

"Mooses" and "Cactuses" are returned for a tables "moose" and "cactus".

I don't think this is going to end the world, but I need to know, using the configuration API, how to determine the EXACT name of the class that one would expect in a Set property of a persistent class.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 13, 2005 3:14 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
Nevermind

Property - getValue().getElement().getAssociatedClass().getClassName()


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.