Flush-before-completion must be enabled. (It is actually a bug that it is not 
enabled by default in HEM.)

You DO NOT have to call merge.


Use a persistence.xml something like this:




<entity-manager>
  |    <name>entityManager</name>
  |    <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |    <jta-data-source>java:/DefaultDS</jta-data-source>
  |    <properties>
  |       <property name="hibernate.dialect" 
value="org.hibernate.dialect.HSQLDialect"/>
  |       <property name="hibernate.transaction.manager_lookup_class" 
value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
  |       <property name="hibernate.transaction.flush_before_completion" 
value="true"/>
  |       <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
  |       <property name="hibernate.show_sql" value="true"/>
  |    </properties>
  | </entity-manager>

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to