openjpa-maven-plugin

Java can't connect to internet - java.net.ConnectException connection timed out

与世无争的帅哥 提交于 2020-01-17 07:47:08
问题 This is using OpenJPA 2.4.2 in my maven project to automate build-time enhancement of the JPA entities: <plugin> <groupId>org.apache.openjpa</groupId> <artifactId>openjpa-maven-plugin</artifactId> <configuration> <includes>**/entity/*.class</includes> <addDefaultConstructor>true</addDefaultConstructor> <enforcePropertyRestrictions>true</enforcePropertyRestrictions> <persistenceXmlFile>src/main/resources/META-INF/persistence.xml</persistenceXmlFile> </configuration> <executions> <execution>

Cannot run static enhancement of OpenJPA entities with Spring Boot

人走茶凉 提交于 2020-01-05 06:29:50
问题 mvn package fails at the openjpa-maven-plugin:enhance stage when I try to enhance my JPA entities in a Spring Boot app. There's a long error description enhance failed: MetaDataFactory could not be configured (conf.newMetaDataFactoryInstance() returned null). no configuration properties were found. It lists some reasons: Ensure that you have a META-INF/persistence.xml file, that it is available in your classpath I'm using spring-data-jpa with Java config, and there's no persistence.xml . Is

Cannot run static enhancement of OpenJPA entities with Spring Boot

瘦欲@ 提交于 2020-01-05 06:29:15
问题 mvn package fails at the openjpa-maven-plugin:enhance stage when I try to enhance my JPA entities in a Spring Boot app. There's a long error description enhance failed: MetaDataFactory could not be configured (conf.newMetaDataFactoryInstance() returned null). no configuration properties were found. It lists some reasons: Ensure that you have a META-INF/persistence.xml file, that it is available in your classpath I'm using spring-data-jpa with Java config, and there's no persistence.xml . Is

Failed to query by spring-data-jpa query methods with suffix IN due to the cachedCriteriaQuery is not correct on openjpa 2.4.1

◇◆丶佛笑我妖孽 提交于 2019-12-13 02:06:21
问题 Update: After I digged into the source code of spring-data-jpa repository query methods, I found the root cause is the createQuery method of PartTreeJpaQuery as below. This method will be called by the invoke method of the QueryExecutorMethodInterceptor of the RepositoryFactorySupport when you call the spring-data-jpa repository query methods interface. public Query createQuery(Object[] values) { CriteriaQuery<?> criteriaQuery = cachedCriteriaQuery; List<ParameterMetadata<?>> expressions =