Questions tagged [datanucleus]

DataNucleus AccessPlatform is an implementation of the JDO and JPA API specifications for Java object persistence, as well as providing a REST API. It is fully standards-compliant, and supports persistence to RDBMS, ODBMS, documents (XML, Excel, ODF), web-based (JSON, Amazon S3, GoogleStorage), map-based (HBase, Cassandra), document-based (MongoDB), graph-based (Neo4j) as well as some others (LDAP).

DataNucleus AccessPlatform is an implementation of the JDO and JPA API specifications for Java object persistence, as well as providing a REST API. It is fully standards-compliant, and supports persistence to RDBMS, ODBMS, Documents (XML, Excel, ODF), Web-based (JSON, Amazon S3, GoogleStorage), Map-stores (HBase, Cassandra), document-based (MongoDB), graph-based (Nep4j) as well as some others (LDAP).

890 questions
113
votes
11 answers

Specifying an Index (Non-Unique Key) Using JPA

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",…
Jay
  • 19,649
  • 38
  • 121
  • 184
85
votes
1 answer

Multiple unique constraints in JPA

Is there a way to specify using JPA that there should be multiple unique constraints on different sets of columns? @Entity @Table(name="person", uniqueConstraints=@UniqueConstraint(columnNames={"code", "uid"})) public class Person { //…
Jay
  • 19,649
  • 38
  • 121
  • 184
20
votes
6 answers

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

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…
ivo
  • 4,101
  • 5
  • 33
  • 42
14
votes
7 answers

High Level Java Client selection for Apache Cassandra

There are four high level APIs to access Cassandra and I do not have time to try them all. So I hoped to find somebody who could help me to choose the proper one. I'll try to write down my findings about…
andreas
  • 1,483
  • 1
  • 15
  • 36
14
votes
4 answers

Google App Engine App with JPA deployment hangs

I have a java GAE web app with datanucleus as the JPA provider. When deploying locally on my machine - the deployment hangs (takes minutes). Looking at the task manager I have a javac process running. Any idea what is going wrong?
Cristi
  • 141
  • 2
14
votes
1 answer

Datanucleus Programmatic API Class Enhancement

I'm using Eclipse 3.7 (OSGI), and i can do the manual Enhancement (with the Datanucleus Eclipse Plugin & datanucleus-enhancer-2.1.0-release imported as plugin dependency) I'm trying now to use the API Class Enhancement:…
marcolopes
  • 9,232
  • 14
  • 54
  • 65
14
votes
3 answers

JPA: which implementations support lazy loading outside transactions?

EclipseLink can load lazy relationships in entities even after the entity manager that has created them is no longer available. With Hibernate this doesn't work, or at least didn't at the time of that post. What about other providers? OpenJPA and…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
14
votes
3 answers

How to turn off DataNucleus Enhancer while working with Google App Engine

I am working in Eclipse on a Google AppEngine Java code. Every time I save a java file, the DataNucleus Enchancer starts off "Enhancement of Classes". Its quite irritating since it takes away focus when you are in full screen mode. Anybody knows how…
Shreeni
  • 3,222
  • 7
  • 27
  • 39
12
votes
4 answers

Can Hibernate be used as the JPA provider in Google App Engine

Can Hibernate 3.5.x be used as the JPA provider instead of the default provider in the latest version of Google App Engine (1.3.2)
Joe
  • 14,513
  • 28
  • 82
  • 144
12
votes
4 answers

Empty list in App Engine Datastore: Java vs Python

I have the following java model class in App Engine: public class Xyz ... { @Persistent private Set uvw; } When saving an object Xyz with an empty set uvw in Java, I get a "null" field (as listed in the appengine datastore…
Laurent Grégoire
  • 4,006
  • 29
  • 52
11
votes
3 answers

Apache spark Hive, executable JAR with maven shade

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…
10
votes
3 answers

Google App Engine DataNucleus 3.1.1 Unexpected Exception Error

Trying to find a way to get rid of this error on eclipse. DataNucleus Enhancer (version 3.1.1) : Enhancement of classes Encountered a problem: Unexpected exception Here is the log java.lang.RuntimeException: Unexpected exception at…
Karavana
  • 489
  • 5
  • 19
8
votes
2 answers

How can I run DataNucleus Enhancer from Gradle?

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
Adrian Ber
  • 20,474
  • 12
  • 67
  • 117
8
votes
2 answers

Google App Engine Data Store Unit Tests With Maven

Trying to get my GAE 1.9.0 project's unit tests to run using maven 3.2.1. Data Store Related Tests Fail : java.util.ServiceConfigurationError: com.google.appengine.tools.development.LocalRpcService: Provider…
bsautner
  • 4,479
  • 1
  • 36
  • 50
8
votes
1 answer

Datanucleus warning: Class was specified in persistence-unit but not annotated, so ignoring

When starting up my app I see for every class this warning: WARN [DataNucleus.MetaData] - Class com.mycomp.MyClass was specified in persistence-unit myPersistenceUnit but not annotated, so ignoring The app starts up correctly so there is no direct…
Marcel Overdijk
  • 11,041
  • 17
  • 71
  • 110
1
2 3
59 60