-->
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: Unexpected result type using standard Java compiler
PostPosted: Thu Nov 30, 2006 1:58 pm 
Newbie

Joined: Thu Nov 30, 2006 1:25 pm
Posts: 2
This is a very odd problem. We are using the version of Hibernate included in Seam 1.1Beta.

I have the following EJB3 native query:
Code:
        rawResults = fusion.createNativeQuery("Select site_server.member_id"+
                 " FROM site_server" +
                 " JOIN v_dynamic_node_tree ON  site_server.associated_node_member_id = v_dynamic_node_tree.ancestor_member_id" +                        
                 "   WHERE v_dynamic_node_tree.descendant_member_id = :CHILD_CONTROL_SET_ID").setParameter("CHILD_CONTROL_SET_ID", parentId).getResultList();   


When I compile via the Eclipse Java builder (Eclipse 3.1) all is fine. That is, my rawResults is a List<Object> which is expected behavior. However, when I compile using the standard Java 1.5 compiler (either _08 or _09) using Ant, I get back List<Object[]>. That is, I get a list of object array with length = 1.
We are using Oracle 10g -- 10.2.0.1.0

This would seem like a bug, but the question is where? It's odd that the compiler being used determines the result type, which is determined by the EJB3 implementation.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 30, 2006 2:03 pm 
Newbie

Joined: Thu Nov 30, 2006 1:25 pm
Posts: 2
BTW, the obvious work-around is simply to get another field in my Select, so that the ReturnType will always be Object[]. Nevertheless, if this is a bug, I would like to report it.


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.