It seems that your batches are lazyly loaded. Therefore you can call getBatches() only
within the same Transaction that loaded obj.
You could mark the one-to-many relation as EAGER-loaded or use an extended Entitymanager.
Stefan
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959091#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...