Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there is option to mention TransactionModeas manged property in Hibernate  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I moved to Hibernate Persistence instead of open JPA persistence providerIMPL due to Jboss eap 6.4 open JPA issue earlier in persistence.xml  it is mentioned as below for OPEN JPA
<property name="openjpa.TransactionMode" value="managed"></property>
        <property name="openjpa.ConnectionRetainMode" value="always"/>

Now I changed to HibernatePersistence and added hibernatec3p0 properties instead of above property.

<property name="hibernate.connection.provider_class"
          value="org.hibernate.connection.C3P0ConnectionProvider" />

        <property name="hibernate.c3p0.max_size" value="100" />
        <property name="hibernate.c3p0.min_size" value="0" />
        <property name="hibernate.c3p0.acquire_increment" value="1" />
        <property name="hibernate.c3p0.idle_test_period" value="300" />
        <property name="hibernate.c3p0.max_statements" value="0" />
        <property name="hibernate.c3p0.timeout" value="100" />

Now my doubt is is the aboove  Hibernate c3p0 propery solve OpenJPA transaction mode "managed" and connectionRetainmode "always".Please help on this

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!