Hibernate version:3.0.5
Quote:
WARN PersistenceContext:612 - Narrowing proxy to class common.models.locations.PhysicalZone - this operation breaks ==
I get this warning when i'm calling a findAll() method ... I can't find any problems in the source code - it looks like all the ohter classes ...
Can anybody help my with this message; is there somewhere in the documentation a hint.
I tried this two version of the findAll():
1)
Code:
try {
String queryString = "from PhysicalZone physicalZone ";
physicalZones = HibernateUtil.getSession().createQuery(queryString).list();
}
catch (HibernateException ex) {
throw new InfrastructureException(ex);
}
2)Code:
try {
physicalZones = HibernateUtil.getSession().createCriteria(PhysicalZone.class).addOrder(Order.asc("name")).list();
}
catch (HibernateException ex) {
throw new InfrastructureException(ex);
}
Thanks for your help!!