[Teneo] EntityManagerFactoryImpl.transactionType not set [message #1597949] |
Mon, 02 February 2015 17:25 |
Flavio Donze Messages: 211 Registered: July 2009 Location: Switzerland |
Senior Member |
|
|
Hi Martin
I'm upgrading to teneo 2.1.0 and hibernate 4.3.8 and came across a problem because "hibernate.transaction.flush_before_completion" was not set, no data was stored in the database.
Used to be ignored:
WARN: org.hibernate.ejb.Ejb3Configuration - HHH000059: Defining hibernate.transaction.flush_before_completion=true ignored in HEM
After some more debugging I found out that different flush checkers are used:
4.2: org.hibernate.ejb.AbstractEntityManagerImpl.ManagedFlushCheckerImpl
4.3: org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl.STANDARD_MANAGED_FLUSH_CHECKER
This made me curious and I found out that org.hibernate.jpa.internal.EntityManagerFactoryImpl.transactionType is null.
Because in org.eclipse.emf.teneo.hibernate.HbEntityDataStore.buildEntityManagerFactory() a new SettingsImpl() is passed where transactionType is null.
So this leads to my actual question, is this a bug or on purpose? Is the transactionType not required anymore?
My transaction type is set to JTA: <prop key="javax.persistence.transactionType">JTA</prop>
A possible problem that I see in org.hibernate.jpa.spi.AbstractEntityManagerImpl.postInit(), is that joinTransaction( false ) is not called anymore.
greets
Flavio
Prozessmanagement und Qualitätsmanagement Software QMS/IMS
https://www.scodi.ch
[Updated on: Mon, 02 February 2015 17:28] Report message to a moderator
|
|
|
Re: [Teneo] EntityManagerFactoryImpl.transactionType not set [message #1602025 is a reply to message #1597949] |
Thu, 05 February 2015 09:18 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Flavio,
This is a bug, can you propose a patch for this and attach it to a bugzilla?
gr. Martin
On 02-02-15 18:25, Flavio Donze wrote:
> Hi Martin
>
> I'm upgrading to teneo 2.1.0 and hibernate 4.3.8 and came across a problem because
> "hibernate.transaction.flush_before_completion" was not set, no data was stored in the database. Used to be ignored:
> WARN: org.hibernate.ejb.Ejb3Configuration - HHH000059: Defining hibernate.transaction.flush_before_completion=true
> ignored in HEM
>
> After some more debugging I found out that different flush checkers are used:
> 4.2: org.hibernate.ejb.AbstractEntityManagerImpl.ManagedFlushCheckerImpl
> 4.3:
> org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorNonTrackingImpl.STANDARD_MANAGED_FLUSH_CHECKER
>
>
> This made me curious and I found out that org.hibernate.jpa.internal.EntityManagerFactoryImpl.transactionType is null.
> Because in org.eclipse.emf.teneo.hibernate.HbEntityDataStore.buildEntityManagerFactory() a new SettingsImpl() is passed
> where transactionType is null.
> So this leads to my actual question, is this a bug or on purpose? Is the transactionType not required anymore?
>
> A possible problem that I see in org.hibernate.jpa.spi.AbstractEntityManagerImpl.postInit(), is that joinTransaction(
> false ) is not called anymore.
>
> greets
> Flavio
>
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04661 seconds