-->
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.  [ 1 post ] 
Author Message
 Post subject: WARN PersistenceContext:612 - Narrowing proxy to class
PostPosted: Wed Aug 24, 2005 4:35 am 
Newbie

Joined: Thu Apr 07, 2005 1:55 am
Posts: 8
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!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.