JBoss Community

Re: Cannot insert null into table error while starting a process

created by jess singh in jBPM - View the full discussion

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Sorry, the persitence.xml did not paste properly in the previous post

 

<

 

persistence xmlns=

"http://java.sun.com/xml/ns/persistence"

 

xmlns:xsi=

"http://www.w3.org/2001/XMLSchema-instance"

 

xsi:schemaLocation=

"http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"

 

version="2.0"

>

 

<persistence-unit name="main" transaction-type="JTA"

>

 

<description>Forge Persistence Unit</description

>

 

<provider>org.hibernate.ejb.HibernatePersistence</provider

>

 

<jta-data-source>java:jboss/datasources/ExampleDS</jta-data-source

>

 

<mapping-file>META-INF/JBPMOrm-JPA2.xml</mapping-file

>

 

<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class

>

 

<class>org.drools.persistence.info.SessionInfo</class

>

 

<class>org.drools.persistence.info.WorkItemInfo</class

>

 

<exclude-unlisted-classes>false</exclude-unlisted-classes

>

 

 

<!--

<class>org.jbpm.process.audit.ProcessInstanceLog</class>

<class>org.jbpm.process.audit.NodeInstanceLog</class>

<class>org.jbpm.process.audit.VariableInstanceLog</class>

-->

 

<properties

>

 

<property name="hibernate.hbm2ddl.auto" value="create-drop"

/>

 

<property name="hibernate.show_sql" value="true"

/>

 

<property name="hibernate.format_sql" value="true"

/>

 

<property name=

"hibernate.transaction.flush_before_completion"

 

value="true"

/>

 

<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"

/>

 

</properties

>

 

</persistence-unit

>

</

 

persistence

>



Reply to this message by going to Community

Start a new discussion in jBPM at Community