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
3
votes
2 answers

How can I run DataNucleus Bytecode Enhancer from SBT?

I've put together a proof of concept which aims to provide a skeleton SBT multimodule project which utilizes DataNucleus JDO Enhancer with mixed Java and Scala sources. The difficulty appears when I try to enhance persistence classes from SBT.…
Richard Gomes
  • 5,675
  • 2
  • 44
  • 50
3
votes
2 answers

DataNucleus enchancer cannot instantiate org.datanucleus.api.jdo.JDOAdapter

My code complies but when I try to run the DataNucleus enhancer, I am unable to get the post compilation step to complete. I presume I am missing a jar file but which one?? I have included the error and the pom.xml I copy the instructions from the…
TheChrisONeil
  • 395
  • 1
  • 6
  • 11
3
votes
2 answers

How can I turn an Eclipse GWT/GAE app into an Eclipse Tomcat/mySQL app?

Sorry in advance for the long post but the problem I am facing here is quite crucial for me, so here we go... I have a Eclipse GWT (2.0) Web Application using the the GAE and making transactions with its datastore. On the other hand I would like to…
mks-d
  • 166
  • 3
  • 14
3
votes
2 answers

Is there any advantage for using a library other than Hibernate for JPA?

I've been using JPA for some time now and been in projects where we've used both Hibernate Annotations and Toplink Essentials. AFAIK the project leader chose Toplink because Netbeans had it integrated and seemed to be the easy thing to do. However…
Jeduan Cornejo
  • 865
  • 2
  • 8
  • 19
3
votes
0 answers

Data Nucleus error: Class "has application-identity and no objectid-class specified yet has 0 primary key fields"

I am receiving an error when my JPA code is invoked and the EntityManagerFactory is being retrieved: Caused by: org.datanucleus.metadata.InvalidClassMetaDataException: Class com.analytics.jpa.model.Providers has application-identity and no…
lamarvannoy
  • 475
  • 1
  • 7
  • 15
3
votes
3 answers

Datanucleus/JDO Level 2 Cache on Google App Engine

Is it possible (and does it make sense) to use the JDO Level 2 Cache for the Google App Engine Datastore? First of all, why is there no documentation about this on Google's pages? Are there some problems with it? Do we need to set up limits to…
Thilo
  • 257,207
  • 101
  • 511
  • 656
3
votes
0 answers

Google App Engine ancestor query in JPA

What is the way to implement ancestor query for the app engine in JPA? I know about @Extension annotation but how is it used in the query? @Entity public class Event { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) …
user1611728
  • 446
  • 6
  • 13
3
votes
1 answer

Datanucleus enhancer not working with appengine

At the moment I am working on a webapplication written in Java, using Spring, JPA, AppEngine and Datanucleus. It all worked well, until last week when all of a sudden nothing would compile anymore (not even older versions on SVN). The versions I am…
frbl
  • 1,172
  • 11
  • 17
3
votes
3 answers

Delete an entity by key without fetching it first in app engine (using JDO)

Is there a way to delete an entity without having to fetch it from the datastore first? I am assuming I already have the key or id for the entity. I'm thinking of something like deleteObjectById that would be an analogue to getObjectById on…
Peter Recore
  • 14,037
  • 4
  • 42
  • 62
3
votes
2 answers

Child entity identity (crisis) in JPA and app-engine

I have two models: Author and Book, where an author may have a list of books. To start with Author has a long @id and Book has a string @id. When I try to put data into the datastore, I get the error Cannot have a java.lang.String primary key and be…
3
votes
1 answer

Google App Engine JDO enhancement is failing

I am trying to build my first Google App Engine WAR and am setting up my own external (outside of Eclipse) Ant build to be executed from the terminal. I'm trying to get the Ant macro working and am running into a bizarre…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
3
votes
0 answers

IntelliJ Datanucleus Enhancer plugin not working

The project I'm developing uses Datanucleus 2.0.3, so I'm using those libraries for enhancement (plugin is configured to use the module dependencies as well). IntelliJ version 12.0.1 on a Ubuntu 12.4 machine. I know the 2.0.3 is ancient history but…
ilfrin
  • 73
  • 1
  • 6
3
votes
1 answer

Use DataNucleus with Glassfish 3.x

I'm having troubles with use of DataNucleus as an ORM framework on Glassfish AS. Actually I'm trying to use to connect to MongoDb. I expected problems here as everybody knows that nosql databases are not a part of standard, but I faced with a…
jjd
  • 2,158
  • 2
  • 18
  • 31
3
votes
1 answer

JPQL: set a column to null in an update

The following JPQL: UPDATE SignIn signIn SET signIn.cookieUUID = null WHERE signIn.user.id = :userID Gives me the following error because of the "= null": Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in…
AndrewBourgeois
  • 2,634
  • 7
  • 41
  • 58
3
votes
1 answer

Many-to-Many relationship in DataNucleus (JDO) doesn't persist

I don't manage to persist a many-to-many link with DataNucleus using JDO. I have two classes Book and Shop. This is the orm mapping file:
Benno Richters
  • 15,378
  • 14
  • 42
  • 45