-->
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: Dynamic models
PostPosted: Fri Oct 28, 2005 4:35 pm 
Newbie

Joined: Sun Oct 23, 2005 8:33 pm
Posts: 4
I am using the dynamic model of Hibernate.
However, I found that hibernate cant return a list of objects which can be casted to Map, if I just query some columns but not all.

I received this exception:Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object;

Is there anyway to avoid this?

Thanks a lot


Top
 Profile  
 
 Post subject: query
PostPosted: Fri Oct 28, 2005 6:02 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
When asked for few columns ( actually we ask for few properties ) H returns list of arrays.
http://www.hibernate.org/hib_docs/v3/re ... ing-scalar

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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.