1 Reply Latest reply on Nov 29, 2008 4:43 AM by estevaofreitas

    Problem using s:convertEntitytag

    estevaofreitas

      Hello to all. I just getting trouble using hibernate with s:convertEntity tag. I just followed the instructions discribed at the docs and put the following line at components.xml file: <ui:hibernate-entity-loader session="#{bookingDatabase}" /> and when I use the s:convertEntity tag, the following exception is launched:


      org.hibernate.TransientObjectException: The instance was not associated with this session
              at org.hibernate.impl.SessionImpl.getIdentifier(SessionImpl.java:1375)
              at org.jboss.seam.persistence.HibernateSessionProxy.getIdentifier(HibernateSessionProxy.java:236)
              at org.jboss.seam.framework.HibernateEntityIdentifier.<init>(HibernateEntityIdentifier.java:13)
              at org.jboss.seam.ui.HibernateEntityLoader.createIdentifier(HibernateEntityLoader.java:28)
              at org.jboss.seam.ui.AbstractEntityLoader.put(AbstractEntityLoader.java:46)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)



      I just wanna know what I'm doing wrong.
      And congratulations to all, you are doing a very good job.