About connection

forum_thread

Enhancer problem

During development, I have used the enhancer API in a static block in the code that creates the EntityManagerFactory, ie. #1 2011-09-02 13:42 During development, I have used the enhancer API in a static block in the code that creates the EntityManagerFact ...

 
issue

NPE in server mode

See stack trace below. Unfortunately I just uncovered this in a log check so I dont have any further information surrounding the circumstances. java.lang.NullPointerException at com.objectdb.o.SHN.ai(SHN.java:470) at com.objectdb.o.SHN.K(SHN.java:146) at com.objectdb.o.HND.run(HND.java:133) at java.lang.Thread.run(Thread.java:595) Full log is attached. NB: This occured in version 2-2-9_07 (as this is what we currently use in prod) so may be resolved in the latest version anyway. ... to run a query in client-server mode after the initial connection to the server has failed. The unexpected state on the server results ...

 
forum_thread

JPA Level 2 Cache - app config

Hello! I would like to use selective cache for JPA Level 2 (cached in EntityManagerFactory) in one app, but no cache at all in another app. Both will be connected to the same ObjectDB server & db. Where and how can I set this to work for ObjectDB? http://www.objectdb.com/java/jpa/setting/entities#The_cache_element_ specifies only amount of MB used for Level 2 cache, but the config is at server level, yet I need it at application level. #1 2013-06-17 13:29 Hello! I would like to use selective cache for JPA Level 2 (cached in EntityManagerFactory) in one app, but no ca ...

 
manual

CRUD Database Operations with JPA

Shows how to use Java/JPA to store, retrieve, update & delete.... Page... , em , that represents a JPA connection to the object database, we can use it to store, retrieve, update and ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in a NetBeans Java EE web application.... class GuestDao { // Injected database connection: @PersistenceContext private EntityManager em ;   ...

 
forum_thread

Selective merge/cascade of detatched entity

I'm having an issue with my application, and I'm hoping you guys will be able to help. Please forgive typos and obvious errors, I'm having to retype from a non-internet connected network. A contrived example is: #1 2012-11-16 15:20 I'm having an issue with my application, and I'm hoping you guys will be able to help. Please forgive typ ...

 
forum_thread

How to retrieve the ObjectDB version number?

Hi! We need  the ObjectDB version for debug purpose/logging. Our project supports also EclipseLink - http://stackoverflow.com/questions/3493495/getting-database-connection-in-pure-jpa-setup With the Connection object the Database name & version can be retrieved. For ObjectDB, which is the best (JPA) method to get the version number?   Peter       ... With the Connection object the Database name & version can be retrieved. For ...

 
forum_thread

How does objectdb deal with conflicting schemas?

Suppose we have an objectdb network server with multiple clients connecting to it. Some clients have the latest object schema, matching that of the server. But some have an older schema, not using fields that have since been added. Will this work? #1 2012-03-15 21:48 Suppose we have an objectdb network server with multiple clients connecting to it. Some clients have the latest o ...

 
api-jdo

checkConsistency()

Validates the PersistenceManager cache with the datastore.(Method of javax.jdo.PersistenceManager)

 
forum_thread

Type ... is not defined as an entity (@Entity is missing) (error 302)

Hello, I am using ObjectDB 2.2.8_08 with eclipse 3.6 and Groovy objects. I am attempting to persist an instance of CultureRqst in the project com.epimss.lab by using a Connection class imported from the project com.epimss.admin.   I can access the database OK, but attempting to persist the CultureRqst leads to the following exceptions: ... of CultureRqst in the project com.epimss.lab by using a Connection class imported from the project com.epimss.admin. I can ... com.epimss.admin.db.Connection.store(Connection.groovy:579) at com.epimss.admin.db.Connection$store.call(Unknown ...