Some suggestions:
1) Association fetching in Hibernate is lazy by default AFAIK
2) How are you getting the EntityManager in your converter? I had problems with getting a
reference to the EntityManager from JNDI and found that getting an EntityManagerFactory
from JNDI worked better (otherwise the entity became detached)
3) '"xxx": Value is not a valid option' validation error occurs because
the newly submitted converted selection is not a member of the original list. Have you
overridden equals() on the OrgUnit so that it uses Id equality rather than object equality
(you create a new OrgUnit from the database when you em.find()).
4) You could try the EntityConverter as it does this all for you for any EJB3 entity.
HTH
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983254#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...