datanucleus

Conflicting versions of datanucleus enhancer in a maven google app engine project

眉间皱痕 提交于 2019-11-28 07:31:50
I'm having a problem setting up datanucleus enhancer to use with a google app engine project. If I use the datanucleus eclipse plugin everything goes well, but in my maven project I get a strange conflicting version error. My POM has these datanucleus references: <dependency> <groupId>org.datanucleus</groupId> <artifactId>datanucleus-core</artifactId> <version>1.1.0</version> </dependency> ... <plugin> <groupId>org.datanucleus</groupId> <artifactId>maven-datanucleus-plugin</artifactId> <version>1.1.0</version> <configuration> <mappingIncludes>**/*.class</mappingIncludes> <verbose>true</verbose

The command line is too long Standard error from the DataNucleus tool

杀马特。学长 韩版系。学妹 提交于 2019-11-28 04:52:21
问题 I am getting this error The command line is too long. mvn install Standard error from the DataNucleus tool org.datanucleus.enhancer.DataNucleusEnhancer The command line is too long. 回答1: If you is using datanucleus-maven-plugin in windows simply set fork property as false in configuration of plugin as follow: <plugins> ... <plugin> <groupId>org.datanucleus</groupId> <artifactId>datanucleus-maven-plugin</artifactId> <version>3.3.0-release</version> <configuration> <verbose>true</verbose> <fork

Apache spark Hive, executable JAR with maven shade

三世轮回 提交于 2019-11-28 04:05:50
问题 I'm building apache-spark application with Apache Spark Hive. So far everything was ok - I've been running tests and whole application in Intellij IDEA and all tests together using maven. Now I want to run whole application from bash and let it run with local single-node cluster. I'm using maven-shade-plugin to build single executable JAR. Application crashes when it tries to create new HiveContext out of SparkContext. Thrown exception tells me that hive can't create metastore because there

Datanucleus, JDO and executable jar - how to do it?

我们两清 提交于 2019-11-27 03:36:44
问题 I am developing a desktop app with Datanucleus and JDO for embedded H2 database. It all works fine when I run it from Eclipse, but it stops working when I try to make executable jar out of it. I get a following error: org.datanucleus.exceptions.NucleusUserException: Persistence process has been specified to use a ClassLoaderResolver of name "jdo" yet this has not been found by the DataNucleus plugin mechanism. Please check your CLASSPATH and plugin specification. Of course it shows that I

How can I run DataNucleus Enhancer from Gradle?

久未见 提交于 2019-11-27 02:22:16
问题 Is there a gradle plugin for running DataNucleus Enhancer? As I can see from documentation you can run it only from Maven or Ant: http://www.datanucleus.org/products/datanucleus/jpa/enhancer.html 回答1: I searched and found no plugin for running the DataNucleus Enhancer from Gradle. But there is a way of doing this by using the DataNucleus Enhancer Ant task. I added the following in my build.gradle . task datanucleusEnhance { description "Enhance JPA model classes using DataNucleus Enhancer"

Conflicting versions of datanucleus enhancer in a maven google app engine project

倾然丶 夕夏残阳落幕 提交于 2019-11-27 01:50:38
问题 I'm having a problem setting up datanucleus enhancer to use with a google app engine project. If I use the datanucleus eclipse plugin everything goes well, but in my maven project I get a strange conflicting version error. My POM has these datanucleus references: <dependency> <groupId>org.datanucleus</groupId> <artifactId>datanucleus-core</artifactId> <version>1.1.0</version> </dependency> ... <plugin> <groupId>org.datanucleus</groupId> <artifactId>maven-datanucleus-plugin</artifactId>

Specifying an Index (Non-Unique Key) Using JPA

百般思念 提交于 2019-11-27 00:11:33
How do you define a field, eg email as having an index using JPA annotations. We need a non-unique key on email because there are literally millions of queries on this field per day, and its a bit slow without the key. @Entity @Table(name="person", uniqueConstraints=@UniqueConstraint(columnNames={"code", "uid"})) public class Person { // Unique on code and uid public String code; public String uid; public String username; public String name; public String email; } I have seen a hibernate specific annotation but I am trying to avoid vendor specific solutions as we are still deciding between

Specifying an Index (Non-Unique Key) Using JPA

蓝咒 提交于 2019-11-26 17:27:20
问题 How do you define a field, eg email as having an index using JPA annotations. We need a non-unique key on email because there are literally millions of queries on this field per day, and its a bit slow without the key. @Entity @Table(name="person", uniqueConstraints=@UniqueConstraint(columnNames={"code", "uid"})) public class Person { // Unique on code and uid public String code; public String uid; public String username; public String name; public String email; } I have seen a hibernate