Issues

Select view

Select search mode

 

adding info level logging into AbstractEntityManagerImpl before calling markAsRollback() method

Description

When an exception is being rolled back for the reason of a nested transient object, Hinbernate does not log it. it is better to include a logging in the Class org.hibernate.ejb.AbstractEntityManagerImpl
line 1378 before calling the method markAsRollback(); so that the trouble shooting for such and exception can be found such as

LOG.warn(e.getMessage()); or LOG.inf(e.getMessage());

Details

Assignee

Reporter

Components

Priority

Created March 18, 2016 at 12:04 PM
Updated April 18, 2016 at 6:30 PM

Activity

Show:

Alan Mehio March 20, 2016 at 1:26 PM

I have found it in the the 5.0.0.CR3
http://grepcode.com/file/repo1.maven.org/maven2/org.hibernate/hibernate-entitymanager/5.0.0.CR3/org/hibernate/jpa/spi/AbstractEntityManagerImpl.java#AbstractEntityManagerImpl

It seems this org.hibernate.ejb.AbstractEntityManagerImpl was deprecated and replaced by the org.hibernate.jpa.spi.AbstractEntityManagerImpl

in the above link the line 1682 to 1690 still the same issue or lack of high lightning of the cause.

Hope this could help

Regards,
Alan Mehio
London

Alan Mehio March 19, 2016 at 11:19 AM

I will check the source code for 5.0.9 and see if this has been added.
Thanks for getting back to me.

Regards,
Alan Mehio
London, UK

Former user March 18, 2016 at 9:42 PM

There will not be any more 4.2 releases and 4.3 is no longer supported. Is this still an issue in 5.0.9?

Loading...