Re: Entity Enhancement in Spring Boot

2019-05-06 Thread Francesco Chicchiriccò
Hi, at Syncope we had this migration from Hibernate to OpenJPA at the time of incubation, and we also had to face similar issues. FYI we are now on OpenJPA since 2011 and we have never been regretting such a choice that was initially dictated by licensing. Coming to your question, we also rely

Re: Entity Enhancement in Spring Boot

2019-05-06 Thread Romain Manni-Bucau
Ps - thanks phone: see https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/orm/jpa/LocalContainerEntityManagerFactoryBean.html Le lun. 6 mai 2019 à 09:02, Francesco Chicchiriccò a écrit : > Hi, > at Syncope we had this migration from Hibernate to OpenJPA at the time > of i

Re: Entity Enhancement in Spring Boot

2019-05-05 Thread Romain Manni-Bucau
Hi Ebenezer Idea is to add https://github.com/apache/openjpa/blob/08bb3a5a0e7573622aa6dc25763cb6513095093b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCClassFileTransformer.java to a classloader supporting it - tomcat or jetty ones for instance in spring boot land. It is automaticall

Re: Entity Enhancement in Spring Boot

2019-05-05 Thread Ebenezer Graham
Hello Romain, Thank you for your reply. I did a little bit of reading on the options you gave and I would like to go with the class transformer option. Can you please elaborate on how to achieve this in spring? Regards. On Sun, 5 May 2019 at 21:58, Romain Manni-Bucau wrote: > Hi Ebenezer > >

Re: Entity Enhancement in Spring Boot

2019-05-05 Thread Romain Manni-Bucau
Hi Ebenezer I was using https://rmannibucau.wordpress.com/2016/03/24/enhance-openjpa-entities-with-gradle/ but you can also add openjpa.jar as a javaagent on the jvm. With spring you would need a custom ClassFileTransformer, not sure it would be the simplest so maybe give a try to the two previou

Entity Enhancement in Spring Boot

2019-05-05 Thread Ebenezer Graham
Hello Devs, I am an Apache Fineract CN contributor currently working on migrating the project's ORM from Hibernate to OpenJPA (more on the issue ). https://github.com/ebenezergraham/fineract-cn-postgresql/commit/c10