1 Reply Latest reply on Feb 3, 2008 5:13 PM by pmuir

    JBPM sessionFactory and annotated entity

    tschnoelzer

      I have an entity model annotated in seam and working fine. My Processes are managed by JBPM also working isolated. Now i extended the TaskInstance for using an entity as an attribute in the TaskInstance:

      <hibernate-mapping default-access="field">
       <subclass discriminator-value="C"
       extends="org.jbpm.taskmgmt.exe.TaskInstance"
       name="com.nsd.business.portal.jbpm.CustomTaskInstance"
       select-before-update="false">
       <property column="CUSTOMID_" generated="never" lazy="false"
       name="customId" />
       <many-to-one name="myContract" column="PROCINST_"></many-to-one>
       </subclass>
      </hibernate-mapping>
      


      As the hibernate.cfg.xml has no access to annotatedConfiguration on the one hand and my persistence.xml can not take care of JBPM mapping on the other hand this relation is not possible?!?!?

      Do i really have to produce an dublicated mapping just for jbpm with MyContract.hbm.xml and all of its own relations?

      Is there an bridge to connect those sessionFactories?

      Thx for any input!

      Timo