[jboss-user] [JBoss Seam] - Re: fetchtype.LAZY results in JSF validation error

petemuir do-not-reply at jboss.com
Sat Nov 4 17:20:46 EST 2006

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.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983254#3983254

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983254

More information about the jboss-user mailing list