About configuration

forum_thread

disabling JDO in objectdb embedded mode

Hi, i am using objectdb (version 2.6.8) in embedded mode. I deployed an .ear project in glassfish. When I attempt to call the database I get several exceptions. As an example consider the following short example: #1 2016-06-02 13:05 Hi, i am using objectdb (version 2.6.8) in embedded mode. I deployed an .ear project in glassfish ...

 
issue

query.getResultList() throws ClassCastException

I modified the example code to include an index on the Point class like so:     @Index(members={"x","y"}) Then when I run the following query:     TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p where p.x <= :x and p.y >= :y",         Point.class); I get the exception at the end.  I do not get an exception if I: ... a projection. I had made changes to use a configuration XML, and was running with agent="true" on JDK 6, so hopefully ...

 
api-jpa

javax.persistence.EntityManager

Interface used to interact with the persistence context.(Interface of JPA)

 
forum_thread

How to resolve 404 errors with Eclipse/Maven Spring MVC

I have created a project as guided by www.objectdb.com/tutorial/jpa/eclipse/spring/run. When I abandon eclipse and use the maven command line to deploy this Spring MVC web app to jetty and point my browser to localhost:8080/Guestbook/ it works as your tutorial says! #1 2013-02-07 17:57 I have created a project as guided by www.objectdb.com/tutorial/jpa/eclipse/spring/run. When I abandon eclipse an ...

 
issue

EOFException

Not sure if you'll be able to help with this but I've had an application get into a state where it cannot access anything from the database - queries fail with the following exception: ... Which JVM? What is the recovery configuration? Where is the database file located - on a local ...

 
forum_thread

Externalising persistence.xml properties in Glassfish?

Hi, ... unit for every environment you want that has unique configuration and be sure to give it a name, this is a requirement if more than ...

 
forum_thread

WebService : Failed to get reference value of field using enhanced method

Hi, I try to use objectdb from Tomcat Webservice without webservice it's works fine:   error: Failed to commit transaction: Failed to get reference value of field field persistence.PolicyEntity.policyString using enhanced method #1 2012-01-31 15:20 Hi, I try to use objectdb from Tomcat Webservice without webservice it's works fine: error: or ...

 
manual

[ODB1] Chapter 5 - JDO Connections

The PersistenShows how to use database connections and transactions in JDO. ceManagerFactory interface represents a factory of database connections. Its main role is to provide PersistenceManager instances. The PersistenceManager interface represents a database connection. Every operation on a database requires a PersistenceManager instance. The Transaction interface represents a transaction on a database. Every operation that modifies the content of the database requires an active transaction.[toc hidden:1]... in a client server connection only when the server configuration allows anonymous access to the database. If not specified here, ...

 
forum_thread

java 8 LocalDateTime is not working in query

My entity class has a field of type java.time.LocalDateTime. I'm able to persist entities and I'm able to query without datetime field in where clause, but with datetime in where clause doesn't return anything and not exception.   ... However, the test at #5 above passes if in the configuration  serialization is enabled : <persist ...

 
forum_thread

JSON serialization and __odbHidden members

Hi.. Building a REST API (Jersey-based one) I noticed that object object I serialize to JSON has a clone field with "__odbHidden" suffix, e.g.there's  "id" and "id__odbHidden" is also (unwantenly) present with the same value. In general, we can annotate fields to include/exclude them from JSON serialization, but since these fields are not declared in my classes, I have no idea how to tell marshaller to avoid them. #1 2015-10-30 10:13 Hi.. Building a REST API (Jersey-based one) I noticed that every object I serialize to JSON has a clone f ...