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

Hbase performance

I am using Spring + Datanucleus JDO + Hbase. Hbase is on a fully distributed mode with two nodes. I am facing serious performance issues here. My webapp can be considered as a pinger which just keeps pinging URLS and stores their response. Hnce my…
Akash Bhunchal
  • 79
  • 1
  • 2
  • 10
3
votes
0 answers

DataNucleus JDO model from database tables

Is it possible to create a JDO model from an existing database using DataNucleus (or may be some other thirdparty tool) There is a guide to generate the JPA model: http://www.datanucleus.org/products/accessplatform/guides/jpa/dali/eclipse_dali.html
Bahadır Yağan
  • 5,577
  • 3
  • 35
  • 39
3
votes
5 answers

Should ORM / RDBMS be used with Java desktop applications?

I've been racking my brains on this one for a while. I've been living in the Django world for a while and it's hard to come back to Java. I'm making a desktop Swing application that does some straightforward CRUD stuff, with some simple one-to-many…
bcoughlan
  • 25,987
  • 18
  • 90
  • 141
3
votes
1 answer

Error in connecting PersistenceManagerFactoryand Persistence.xml

My goal is to do CRUD operation using datanucleus, h2 database in java. but getting stuck in connecting PersistenceManagerFactory and persistence.xml I have tried with different versions of datanucleus-core,h2database,datanucleus-api-jdo. I am…
3
votes
0 answers

Datanucleus + OSGi (Equinox) gives error No suitable driver found for jdbc:mysql://localhost:3306/jdoosgitest

I am trying to use datanucleus jdo implementation inside the osgi environment but I am constantly getting error : No suitable driver found for jdbc:mysql://localhost:3306/jdoosgitest I have been following the link…
nattu
  • 149
  • 2
  • 9
3
votes
0 answers

DROP TABLE IF EXISTS/CREATE TABLE IF NOT EXISTS not working with SparkSQL

I am connecting with Hive using Spark 2.x and I am running following Spark Query: spark.sql("""DROP TABLE IF EXISTS db_name.table_name""") spark.sql("""Create TABLE IF NOT EXISTS db_name.table_name""") if the table doesn't exist then the first…
Naman Agarwal
  • 614
  • 1
  • 8
  • 28
3
votes
2 answers

How to implement a roundtrip from XML Schema using Java with a Database

What is the best way of implementing a roundtrip for receiving XML files and eventually persisting the data into a database using Java. Currently I have: 1. An XML Schema & XML data files send to me - the XSD is fairly complex and belongs to an…
wacko
  • 31
  • 2
3
votes
0 answers

" Could not find API definition for name "JDO"" when launched through jar

So when I try to connect to my hive metastore I'm getting this exception javax.jdo.JDOFatalInternalException: Unexpected exception caught. at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1193) at…
Rushnak
  • 31
  • 3
3
votes
2 answers

@Unique doesn't have any effect in DataNucleus w/ NeoDatis

Using JDO / DataNucleus / NeoDatis datastore I added @Unique to a field of a persistable object, however I am allowed to create multiple objects which violate the unique constraint. The docs for DataNucleus/NeoDatis suggest that Unique fields are…
David Parks
  • 30,789
  • 47
  • 185
  • 328
3
votes
4 answers

JDO: Is the PersistenceManager a singleton?

Just the basics: I'm using DataNucleus backed with an embedded DB4O database. If I do this simple test: PersistenceManager pm1 = persistenceManagerFactory.getPersistenceManager(); PersistenceManager pm2 =…
David Parks
  • 30,789
  • 47
  • 185
  • 328
3
votes
2 answers

JPA Query toString

I have a JPA Query I am executing on the Google App-Engine datastore. I am building the query using parameters. After all parameters have been inputted, I wish to view the Query String. That is, I wish to view the actual query being executed by the…
David
  • 113
  • 1
  • 4
3
votes
2 answers

Defining database independent JPA object uid

It turns out that the following example works when using mysql 5.x, however it doesn't when using an oracle 10g database. Is there a way to define a unique identifier field that is independent of the database technology? @Id @GeneratedValue(strategy…
Jay
  • 19,649
  • 38
  • 121
  • 184
3
votes
2 answers

Ignore case in JDO query

I would like to select a list of results from a database, but the == operator for JDO queries is case-sensitive. Is there a way to select "USER", "user", and "User" from a table using a single parameter? In MySQL you have the LIKE operator, and in…
Vortico
  • 2,610
  • 2
  • 32
  • 49
3
votes
0 answers

Identifier unresolved(Not a static fields)

I am using JDO API 3 with google app engine 1.9.15. using javax.jdo.PersistenceManager, javax.jdo.Query, javax.jdo.Transaction for queries. SO basically i am doing relational mapping in my JDO entity. My JDO entity is…
3
votes
0 answers

datanucleus maven is throwing IllegalArgumentException

I'm trying to get starting using Apache Isis. I have created an sample project from the Isis maven archetype. However when I do mvn clean install, I get the following: [ERROR] Failed to execute goal…
Magick
  • 4,603
  • 22
  • 66
  • 103