Re: JPA vs DBUtils

2017-06-19 Thread Laird Nelson
Have you sat down for a good long reading session with http://java-persistence-performance.blogspot.com/? I found that site invaluable. Best, Laird -- http://about.me/lairdnelson On Mon, Jun 19, 2017 at 8:22 PM sgjava wrote: > I just built a project to compare JPA+Hibernate

JPA vs DBUtils

2017-06-19 Thread sgjava
I just built a project to compare JPA+Hibernate to a DBUtils implementation. DBUtils is a lot faster by a large margin. Can anyone tell me if they have tuned JPA to perform better? I used TomEE 7.0.4-SNAPSHOT. I could live with maybe a 10% difference, but I'm talking about 10 to 10 times slower!

PersistenceUnitUtil.getIdentifier() throws a NPE

2017-06-19 Thread Lazar Kirchev
Hello, I noticed that in TomEE Plume if PersistenceUnitUtil.getIdentifier() is called before any persistence operation is performed, it throws a NullPointerException. This happens because in EclipseLink PersistenceUnitUtil.getIdentifier() uses an object which gets initialized upon entity manager