Hi everyone, from the beginning i`d like to apologize for my english, that is not so good
I'm having some trouble to make a simple operation on my program.
I just want take some information from my DB, but when my code run this line:
Code:
List<Configuration> list = this.configurationDAL.search("02.%", "codigo", 1);
from there go to:
Code:
public List<Configuration> search(String codigo, String orderByField, int orderByMethod) {
Criteria criteria = getSession().createCriteria(Configuration.class);
if (codigo != null){
criteria.add(Restrictions.like("codigo", codigo));
}
if (orderByField != null && orderByMethod != Constants.OrderByMethod.DB){
if (orderByMethod==Constants.OrderByMethod.DESC){
criteria.addOrder(Order.desc(orderByField));
}else{
criteria.addOrder(Order.asc(orderByField));
}
}
return criteria.list();
}
and the exeption comes from:
Code:
return criteria.list();
Quote:
org.springframework.orm.hibernate3.HibernateSystemException : A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: entidades.PedidoVenda.linhaPedidoVendaPecaCollection; nested exception is org.hibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: entidades.PedidoVenda.linhaPedidoVendaPecaCollection
but the misterious are becouse i make other method and other class and entity and still trown the same exeption aways on return.
EDIT: I forgot say before, this exception have no realationship with the operation.
and on my glassfish drops this warn:
Quote:
4814063 [httpSSLWorkerThread-8080-0] WARN loading.LoadContexts - fail-safe cleanup (collections) : org.hibernate.engine.loading.CollectionLoadContext@15d2c01<rs=org.postgresql.jdbc3.Jdbc3ResultSet@1ff0850>
but i search and this warn is a version bug of hibernate.
Pls help-me
Ty for read.