-->
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: 8.0.2 Issue - CreateCriteria with SubClass - works in 7.0.0
PostPosted: Fri May 13, 2005 2:20 pm 
Newbie

Joined: Fri May 13, 2005 11:14 am
Posts: 18
(I posted this in the other forum, but I wasn't sure if it was still being monitored)

In 0.7, I was able create a Criteria off a subclass and the items were returned without an issue. Now, I upgraded in 0.8.2, I try to do the same thing and I receive an exception saying problem in find.

So, if I pass in the type of the class specified in the mapping, it works in 0.8.2. If I pass in the type of a subclass specified in the mapping, it thrown an exception in 0.8.2.

Anyone else have this issue?

public IList RetrieveAll(Type type)
{
ArrayList securities = null;

ICriteria criteria = this.RetrieveCriteria(type);

criteria.AddOrder(Order.Asc("Id"));

securities = (ArrayList) criteria.List();

return securities;
}


protected ICriteria RetrieveCriteria (Type type)
{
ICriteria criteria = null;

criteria = this.session.CreateCriteria(type);

return criteria;
}


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 13, 2005 2:33 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
The old forum is still monitored, it's just that I'm tired of entering JIRA issues already :? so I don't reply quickly. We'll look into it.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 15, 2005 11:59 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 12:59 pm
Posts: 20
0.8.3 should have fixed this. If not, please let us know.

Mike


Top
 Profile  
 
 Post subject: 0.8.3 Fixes the Issue
PostPosted: Tue May 17, 2005 10:51 am 
Newbie

Joined: Fri May 13, 2005 11:14 am
Posts: 18
Thank you very much. NHibernate is great!


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.