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
5
votes
1 answer

Datanucleus gae.pk-id not populated on makePersistent

When I make a class that defines both "gae.encoded-pk" and "gae.pk-id" persistent, the encoded-pk is updated, but the id remains null. There's no exception being thrown and the code is a straight copy paste from google's documentation, so I'm at a…
5
votes
1 answer

JDODetachedFieldAccessException: You have just attempted to access field "attachment" yet this field was not detached when you detached the object

Entity class: public class CustomerSurvey implements Serializable { @Id @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CUSTOMER_SURVEY_SEQUENCE") @Column(name = "SURVEYID", nullable = false) private String…
beetri
  • 1,039
  • 11
  • 24
  • 40
5
votes
1 answer

Datanucleus using wrong enhancer in Google App Engine 1.7

I'm having difficulty in getting Datanucleus 2 to work properly with enhancing classes on GAE 1.7.0 in Eclipse using the Datanucleus plugin. This worked fine in older versions of GAE when I'd follow the manual steps…
DavidB
  • 2,064
  • 3
  • 17
  • 17
5
votes
1 answer

Embedded JDO Field is not Retrieved by Query

I am using the local-development version of App Engine's JDO implementation. When I query an object that has contains other objects as embedded fields, the embedded fields are returned as null. For example, lets say this is the main object that I…
Chania
  • 307
  • 3
  • 14
4
votes
1 answer

Using DataNucleus' list-ordering extension leads to empty list

So, I have an unidirectional one-to-many relationship where I want to keep the children in an ordered list. Since they already have an "index" property, I tried to follow the advice on…
Timo Ohr
  • 7,947
  • 2
  • 30
  • 20
4
votes
2 answers

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

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.
user1077002
  • 41
  • 1
  • 2
4
votes
1 answer

JDO best practice: Store objects as a collection under their parent or independently?

I have a User and Transaction class Each Transaction logically belongs to a User. But I may need to query for some subset of Transactions (ex: return all Transactions for User A with Transaction.type=1) In SQL I just maintain a Transaction.userID…
David Parks
  • 30,789
  • 47
  • 185
  • 328
4
votes
1 answer

Datanucleus enhancement with Bazel

I'm trying to migrate Maven project to Bazel and having troubles with Datanucleus enhancement. After jar-file is build, Datanucleus looks inside it and does some byte-code manipulation to enhance persistable classes. The way to perform this in Bazel…
FireFry
  • 125
  • 6
4
votes
1 answer

ClassCastException in DataNucleus DAO object when persisting/retrieving an Object using JDO

I've created a simple webapp using Spring & Jetty, and am creating a hello world JDO test using DataNucleus & DB4O. I can persist a class no problem, but when I go to query for the class I get a ClassCastException, can't cast a.b.c.MyClass to…
David Parks
  • 30,789
  • 47
  • 185
  • 328
4
votes
1 answer

datanucleus enhancer & javaw: "the parameter is incorrect"

I'm on windows XP using eclipse and the datanucleus enhancer for a gwt + gae app. When I run the enhancer, I get an error: Error Thu Oct 21 16:33:57 CDT 2010 Cannot run program "C:\Program Files\Java\jdk1.6.0_18\bin\javaw.exe" (in directory…
Riley Lark
  • 20,660
  • 15
  • 80
  • 128
4
votes
1 answer

GAE JPA DataNucleus One-to-Many object creation

Let's say an Owner has a collection of Watch(es). I am trying to create Watches and add the newly created Watches to an existing Owner's collection of watches (an arraylist). My method is as follows: public void add(String ownerName, String…
Jason
  • 43
  • 4
4
votes
1 answer

GAE (Java) High Replication Datastore testing - datastore not cleared between test cases

Summary I'm seeing some odd behaviour when setting up unit tests using appengine's High Replication Datastore. I've put a full example below. The issue is that a persisted object from one test case is available to a later test case, but only when…
4
votes
2 answers

Class not found exception for com/google/appengine/tools/enhancer/Enhance when starting eclipse

I did a fresh download of Eclipse Juno and installed Google App Engine SDK. After this whenever I start eclipse I get an error Could not find the main class: com.google.appengine.tools.enhancer.Enhance. Program will Exit. Edit: Looks like there…
mihirg
  • 915
  • 2
  • 13
  • 28
4
votes
2 answers

DataNucleus / AppEngine - multiple JAR versions of the same plugin in the classpath

A problem found in log file while running my Java/AppEngine application. Where to check the said multiple JAR versions? java.lang.RuntimeException: Unexpected exception at com.google.appengine.tools.enhancer.Enhancer.execute(Enhancer.java:76) …
JR Galia
  • 17,229
  • 19
  • 92
  • 144
4
votes
2 answers

How to update foreign key in one table with the primary key of the table that it references using JPA?

I've two tables as following, USER +--------+---------------+------------+--------+-----------+------------+--------------+----------------+----------------+-------------+ | USERID | EMAIL | FIRST_NAME | HONORS | LAST_NAME | LOGIN_TYPE |…
Harshal Kshatriya
  • 5,630
  • 11
  • 44
  • 60
1 2
3
59 60