About 6,710 results
Open links in new tab
  1. Difference between Apache Open JPA and Spring JPA

    May 17, 2021 · But development of Open JPA was so slow in recent years that the Spring Data Team dropped OpenJPA from the JPA implementations it tests against. To get a feeling for the development speed, you might look at the releases from the last three years (2019-2021): Hibernate: 32 (not counting alpha and beta releases)

  2. How to enhance classes properly at build time using Maven?

    Mar 4, 2021 · Copy my pom.xml (or add dependencies to derby, openjpa and set up your openjpa-maven-plugin, names and paths) Copy my persistence.xml (or create your own with some persistence unit) Copy my EntityPerson class (or create simple JPA entity to test it on) Run mvn clean compile openjpa:enhance install (important part is openjpa:enhance)

  3. java - OpenJPA: A JDBC Driver or DataSource class name must be ...

    Apr 2, 2014 · Please, please, please do set openjpa.RuntimeUnenhancedClasses=warn. That property was disabled for a very good reason and you WILL encounter known bugs. I'd advise getting the -javaagent or buildtime enhancer setup.

  4. jpa - org.apache.openjpa.lib.jdbc ... - Stack Overflow

    May 5, 2011 · When I manually create the table, I'm able to insert my Admin @Entity as expected. But I still don't know why openJPA won't create my table. Insen't the openjpa.jdbc.SychronizedMappings property set to a value of 'buildSchema' suppose to …

  5. openJPA's persistence.xml configuration - Stack Overflow

    Oct 10, 2013 · Earlier in my project I was using a combination of Hibernate 3.3.2, openJPA 2.1.1 to connect to the database and retrieve the information from table. Now I want to remove Hibernate and use openJPA for doing connection and retrieving the information. My earlier configuration of persistence.xml was

  6. openjpa - Is there Any Way to Enforce ... - Stack Overflow

    Sep 13, 2011 · Try setting your properties in META-INF/persistence.xml. I assume you have these properties in the openjpa.xml file for a reason, but it might help us figure out where the real problem is. Set -Dopenjpa.RuntimeUnenhancedClasses=false as a JVM property. This will apply to all PUs for a given JVM. Move to a version of OpenJPA that is >= 2.0.0.

  7. How do I configure OpenJPA SQL logging? - Stack Overflow

    May 25, 2012 · What is the OpenJPA configuration to view SQL query executed in a database? I would like to view the query with all parameters executed in log or console instead of viewing the JPQL query

  8. java - Attempt to cast instance to PersistenceCapable failed.

    Dec 1, 2010 · According to the OpenJPA docs, I shouldn't have to do anything to get the basic enhancement at runtime: 2.5. Omitting the OpenJPA enhancer. OpenJPA does not require that the enhancer be run. If you do not run the enhancer, OpenJPA will fall back to one of several possible alternatives for state tracking, depending on the execution environment.

  9. The type "class *" has not been enhanced JPA exception

    Feb 7, 2017 · Finally, in the case where a javaagent is needed (e.g. Eclipse/JSE environment), you need not specify your main class, simply do a -javaagent:<path to jar>; where "<path to jar>" is the location of your OpenJPA jar.

  10. OpenJPA + Log4j2 - Stack Overflow

    Sep 23, 2018 · Once openjpa logs are route properly to slf4j it is ok. I hope your application use sllf4j. Be sure to use proper versions of log4j2 slf4j and bridge and remove all previous log4j1.x and old slf4j dependencies.

Refresh