-->
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: Hibernate return list with NULL objects in it
PostPosted: Sat Mar 19, 2011 9:09 am 
Newbie

Joined: Sat Mar 19, 2011 8:57 am
Posts: 1
Hi,

I am using criteria query to fetch list of records from database VIEW. I have created the corresponding HBM.xml and POJO files.

OuterView.hbm.xml corresponds to OuterView.java, which contains a composite key of class InnerView.java.
OuterView.java contains only one attribute as InnerView and InnerView contains all the column names and their getters and setters.

I am creating criteria on OuterView.java and the query is being fired too. But when I am fetching the returned list, it gives me a list with NULL objects in it. I cannot get the data neither in OuterView nor in InnerView.

Can you please help me out? Is there something that I am missing?


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.