About main

api-jdo

javax.jdo.JDONullIdentityException

An instance of this class is thrown when attempting to create an object id when the object id constructor parameter is null.(Exception of JDO)

 
tutorial

Step 2: Define a JPA Entity Class

Explains how to create a JPA entity class in the Eclipse IDE.... Java class. The next step is adding a Main class that stores and retrieves instances of the Point entity class. ...

 
tutorial

Getting Started with JPA and Eclipse

Getting started tutorial for quick start with using Java Persistence API (JPA) in Eclipse.... Step 2: Define a JPA Entity Class Step 3: Add a Main Class Step 4: Run the Application ...

 
tutorial

Step 2: Define a JPA Entity Class

Explains how to create a JPA entity class in the NetBeans IDE.... despite the warning. The next step is adding a Main class that stores and retrieves instances of the Point entity ...

 
manual

[ODB1] Chapter 9 - ObjectDB Explorer

Explains how to view and manipulate database files in the database explorer. ... JAR directly The Explorer is packaged in the main ObjectDB development jar file (odbfe.jar / odbee.jar / odbse.jar), located ... its persistent fields are represents by child nodes. The main advantage of using the browser window is in navigation among objects. ...

 
manual

[ODB1] Chapter 7 - JDOQL Queries

Explains how to use JDOQL, the Java/JDO Query Language.... satisfying the given filter. In addition to these three main components, queries can include other optional components, such as ... variables in JDOQL: Bound variables, whose main role is in querying collection fields Unbound variables, ...

 
tutorial

Getting Started with JPA and NetBeans

Getting started tutorial for quick start with using Java Persistence API (JPA) in NetBeans.... Step 2: Define a JPA Entity Class Step 3: Add a Main Class Step 4: Run the Application ...

 
forum_thread

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

I'm trying to have the guestbook example running in the following environment: jboss as 7.1.1 final oracle jdk 1.7.0_04 maven 3.0.4 objectdb 2.4.0_04 installed as a module of jboss No IDE is used for building the Guestbook.war only maven.   My GuestDAO code is as follows: ... service jboss.module.service."deployment.guestbook.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.guestbook.war".main: Failed to load module: deployment.guestbook.war:main   09:14:52,546 ERROR [ org.jboss.as.server.deployment.scanner ...

 
forum_thread

"where in" query

Is it possible to run a query selecting values that exist in a provided list? e.g. something like: SELECT u FROM User m WHERE u.username IN ('test_user','anotheruser') I've tried various combinations of this including passing the list as a named parameter but without any joy. The only similar examples I can find in the docs involve a join query - but my list isn't in the database - and the MEMBER OF operator doesn't seem to do what I want (although I may be using it incorrectly! ... will be implemented with subqueries  (since its main use is in subqueries). The following code demonstrates how to use ... class F170 { public static void main ( String [ ] args ) { ...

 
forum_thread

using DbUnit with ObjectDb

Are there any examples about how to use DbUnit with ObjectDB? DbUnit requires access to a jdbc connection .. with other providers it's possible to extract the jdbc connection from the EntityManager, e.g. for Eclipselink / Postgres combination you can use the rather long-winded: IDatabaseConnection connection = new DatabaseConnection(((EntityManagerImpl) (em2.getDelegate())).getServerSession().getAccessor().getConnection(), "PUBLIC"); but with objectDb this gives: ... but with objectDb this gives: Exception in thread "main" java.lang.ClassCastException: com.objectdb.jdo.PMImpl cannot be cast to ... I am glad it works for you. But I think that the main limitation of this approach is that it is limited to small data sets that ...