We are trying to implement a straigt forward DataSource backed by a JPA/Hibernate Entity.
The DataSource looks like this:
	In server.properties we configured EMFProviderLMT as jpa.emfProvider and the data are shown in the clients grid.
The problem now is however that after each IDA-Call there is a new connection to the database, because in our opinion the transaction does not get commited/rolled back before the EntityManager gets closed in the method EMFProviderLMT#returnEntityManager. In our understanding of the docs the framework should handle that automatically. We are using SmartGWTEE-Pro 6.0 and Hibernate 5.2.3.
Are we missing something? Help would be appreciated!
Thanks
					The DataSource looks like this:
Code:
	
	<DataSource
    ID="CUSTOM_DATASOURCE"
    serverType="jpa"
    autoDeriveSchema="true"
    schemaBean="com.test.server.custom.entity.MyCustomEntity"
    >
   <fields>
      <field name="text" required="true"/>
      <field name="kurzbezeichnung"/>
      <field name="aktiv" type="boolean"/>
      <field name="sortierung"/>
   </fields>
</DataSource>
The problem now is however that after each IDA-Call there is a new connection to the database, because in our opinion the transaction does not get commited/rolled back before the EntityManager gets closed in the method EMFProviderLMT#returnEntityManager. In our understanding of the docs the framework should handle that automatically. We are using SmartGWTEE-Pro 6.0 and Hibernate 5.2.3.
Are we missing something? Help would be appreciated!
Thanks
Comment