-->
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: Eclipse HQL editor returns null references for an entity
PostPosted: Tue Feb 17, 2009 6:09 pm 
Newbie

Joined: Mon Jan 26, 2009 4:39 pm
Posts: 2
I'm using the HQL editor to preview results for my queries.

My class is annotated that maps to a table with no primary key. I assign it a key by having an embeddable id key of all the columns in the table. After populating data, do a simple "from ClassName" expecting all the references to the entities. What I get is a result set of null references. The query seems like it can find the rows I am asking, it just that Hibernate seems to be having a hard time trying to recreate those entities. Anyone run into issues where the queries return a bunch of null references?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2009 12:45 pm 
Newbie

Joined: Mon Jan 26, 2009 4:39 pm
Posts: 2
Figured out what happened, I had part of my embedded key id using a column specified as text which is an unlimited text array. Taking that column out of the key, fixed the problem.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.