-->
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 not loading property
PostPosted: Sat Jan 08, 2011 3:36 am 
Newbie

Joined: Sat Jan 08, 2011 3:32 am
Posts: 1
Hi folks,

I'm trying to establish why Hibernate won't load a property--the property is mapped using the annotations API, and other properties on the same entity are loaded. Here's the relevant bit of my entity and the resulting SQL query.

Code:
@Column(name="HasSubSlots")
@Type(type="yes_no")
public boolean hasSubSlotSupport() {
   return hasSubSlotSupport;
}

Code:
Hibernate:
    /* load entities.DeviceModel */ select
        devicemode0_.DevModel as DevModel1_0_,
        devicemode0_.InvModelName as InvModel2_1_0_
    from
        DeviceModels devicemode0_
    where
        devicemode0_.DevModel=?


The missing column is not loaded at all. Any ideas why?


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.