(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;
}
|