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

NullPointerException running DataNucleus Enhancer 3.1.0-release

I am running DataNucleus enhancer from DOS as follows: java -cp…
Chania
  • 307
  • 3
  • 14
3
votes
1 answer

Can you use dependency injection in persistent entities?

I would like to bring dependency injection to my persistent entities, but I am not sure how it can be done. A salted hash algorithm in my GWT application required a Base64 implementation. GWT ships with an old version of commons-codec. Due to the…
Felix Lechner
  • 468
  • 5
  • 11
3
votes
4 answers

'DataNucleus Enhancer' Error 206

I have a problem. I always get an Error 206 from Java DataNucleus Enhancer, since 2 days ago... days before, it worked without errors. Cannot run program "D:\Program Files\Java\jre6\bin\javaw.exe" (in directory…
Sam
  • 2,707
  • 1
  • 23
  • 32
3
votes
1 answer

jdo: Programmatically create multiple persistence-units in DataNucleus

I have two different data sources for which I need two different PersistenceManagerFactory. This I can always get by writing a persistence.xml file. But I want this to be represented programmatically. Though the second data-source remains relatively…
Unmanned Player
  • 1,109
  • 9
  • 30
2
votes
2 answers

Weld (CDI) and Datanucleus (JPA) don't play nice, is there an elegant workaround?

...at least, if the concept of an "elegant workaround" actually has merit! Here are some details: When using CDI and JPA, you'll often want to access one of your JPA-managed beans in an EL Expression on one of your JSF pages, like so:
Shaun
  • 2,490
  • 6
  • 30
  • 39
2
votes
0 answers

Datanucleus autoCreateSchema issue (contradictory error messages)

I have a small local H2 database whose content has been create with DataNucleus' JDO implementation. It contains a rawcontainitem table, associated to the following…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
2
votes
0 answers

How to troubleshoot BIRT and JDO classloading issue?

I am trying to instantiate a JDO-annotated and Datanucleus-enhanced class within a data access method that is getting invoked from a BIRT report via a custom ODA Driver. BIRT Engine -> ODA Driver -> Data Access Class -> new JDOAnnotatedClass() But…
Tahir Akhtar
  • 11,385
  • 7
  • 42
  • 69
2
votes
1 answer

Error removing entity on AppEngine

I'm facing some problems trying to remove an entity from the database. I have an interface to abstract the AppEngine Entity from my business Object. I can easily Insert and Update, but when I try to delete I got the error:…
nanndoj
  • 6,580
  • 7
  • 30
  • 42
2
votes
1 answer

DataNucleus, JDO, how to persist my own List implementation?

I have written my own java.util.List implementation, and now i want to store it in a MySQL using DataNucleus. My implementation consists of a public class that implements the List interface, and a private class that implements the node for that…
Ibolit
  • 9,218
  • 7
  • 52
  • 96
2
votes
1 answer

JDO handling unique constraint violations

I have what I think is a common scenario in JDO. I have a simple persistent class, say @PersistenceCapable public class Person { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.INCREMENT) private long id; @Persistent …
Mark Peters
  • 80,126
  • 17
  • 159
  • 190
2
votes
2 answers

Add scala class to DataNucleus enhancer CLASSPATH

I am writing a Google App Engine web app and wish to use Scala on the server side. I'm using Eclipse and the Google App Engine plugin. However, as soon as I add an empty Scala class source file to my project, the DataNucleus enhancer warns: SEVERE:…
randusr836
  • 445
  • 1
  • 3
  • 16
2
votes
1 answer

DataNucleus: How do I automatically perform actions when commiting a transaction?

Consider having an application using DataNucleus with the following persistence structure: You have a class that has two attributes like created (Date) and lastUpdate (Date): How do you automatically fill those attributes with the appropriate…
Markus
  • 1,772
  • 1
  • 12
  • 20
2
votes
3 answers

Updating objects in GAE

I have a problem that I can't be able to solve. I've tried to search on the web for solutions, but I didn't find any generic solution. I want to update an object, whatever it's class may be, in the datastore. For that, here's the code I'm using for…
SHiRKiT
  • 1,024
  • 3
  • 11
  • 30
2
votes
1 answer

Datanucleus: moving from @Transactional to non-transactional

I am using Datanucleus, JDO and Spring's declarative @Transactional management woven with Aspect-J. But when a 'normal' method gets a persistent object from a @Transactional method, the object's state will become transient (the persistence manager…
Cojones
  • 1,906
  • 22
  • 25
2
votes
1 answer

Generate JDO objects from existing database

Is there a tool to generate JDO objects from an existing database? I prefer a awesome looking Eclipse plugin which i could use to generate and maintain the object but it seems that this is currently not existing. Are other, simple tools to generate…
Roel Veldhuizen
  • 4,613
  • 8
  • 44
  • 78