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.  [ 4 posts ] 
Author Message
 Post subject: Strange problem with CreateCriteria().List()
PostPosted: Mon Oct 02, 2006 5:20 am 
Regular
Regular

Joined: Thu May 11, 2006 12:30 pm
Posts: 72
Hibernate version: 1.2.0 Beta 1

Mapping documents:

<?xml version='1.0' encoding='utf-8'?>
<hibernate-mapping xmlns='urn:nhibernate-mapping-2.0'>
<class name='RuredilManager.TipiImpegno, RuredilManager' table='IMPTIPI'>
<id name='ID' column='ITIID' >
<generator class='identity' />
</id>
<property name='Description' column='ITIDESC' />
</class>
</hibernate-mapping>

Name and version of the database you are using: DB2 UDB for iSeries (DB2/400)

i'm retrieving a simple list from this simple table but i'm getting this result

Image

my single line of code is

Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 02, 2006 7:10 am 
Regular
Regular

Joined: Thu May 11, 2006 12:30 pm
Posts: 72
obviusly the 2 different item are not property hydrated, and doesn't work

any idea ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 02, 2006 7:17 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
berets wrote:
obviusly the 2 different item are not property hydrated, and doesn't work


This is expected picture due to NHibernate lazy loading implementation.

But please explain what and how is "not working"?

Gert

_________________
If a reply helps You, rate it!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 02, 2006 8:22 am 
Regular
Regular

Joined: Thu May 11, 2006 12:30 pm
Posts: 72
ops, sorry, the problem was the lazy (that in my case must be false!)

thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.