-->
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: set and bag -> getReturnedClass()
PostPosted: Mon Jul 12, 2004 7:33 pm 
Beginner
Beginner

Joined: Wed Jan 28, 2004 3:42 pm
Posts: 36
Hi,

It looks like calling PropertyType.getReturnedClass() always returns a java.util.Collection in the case of <bag> property even though the generated Java objects implements the property as a List. According to the documentation <bag> can be implementated as either, I'm not sure how the code generator decides?

Anyways, is there a way getReturnedClass() can give me List instead of Collection? It's probably not a huge issue given their relationship but some of the List functionality might come in handy. I guess I could just always cast it (using this in a generic fashion in a code generator).

Thanks
Peter


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.