-->
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: HQL superclass's property not set on select
PostPosted: Mon Aug 03, 2009 5:50 pm 
Newbie

Joined: Mon Aug 03, 2009 5:01 pm
Posts: 1
Hi,

Say I have two classes called SuperClass and SubClass and they look like this:

Code:
class SuperClass {
   private Date createDate;
 
   public Date getCreateDate()...
   public void setCreateDate(Date date)....
}

class SubClass extends SuperClass {
  private String description;

  .....
}


Now say I want to select all of my SubClass from the database with my createDates hydrated as well. I can't seem to get this createDate hydrated using my HQL below:

Code:
select subclass from SubClass as sc fetch all properties


Any ideas on how to select the SubClass with the createDate hydrated via HQL? Thanks.


Top
 Profile  
 
 Post subject: Re: HQL superclass's property not set on select
PostPosted: Mon Aug 03, 2009 8:04 pm 
Beginner
Beginner

Joined: Thu Jul 22, 2004 10:51 pm
Posts: 29
Location: sydney australia
mappings?


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.