All my getters and setters are "simple" ones, i.e. variable = value. I have no extra code in any of them.
Here is the DAO code where I get the Environment object:
public Environment findById(long environmentId)
{
List envs = getHibernateTemplate().find( "from Environment where id = ?", new Long(environmentId) );
if ( envs.size() > 0 )
return (Environment)envs.get(0);
else
return null;
}
As I mentioned, EnvironmentDao has CMT enabled through Spring, using HibernateTransactionManager. This includes the above method. Would ending the transaction before lazily traversing the collection (within the same request) cause this exception?
Thanks,
Andrew
_________________ 1-800-flowers.com? How on earth do you reach these people?
|