About package

issue

JPA Composite Key make Object Db throws "Unexpected exception (Error 990)"

Hello Object Db community :) I am using this wonderful library and I caught a strange exception while testing the "composite key" feature in JPA. Let's see what I am doing : @Entity public class Book {     @EmbeddedId BookId id; } @Embeddable Class BookId {     Integer bookIdCountry;     ECountry country; } My BookId contains 2 attributes: One Integer and one enum. ... key with an enum type. Here is the code : package test ;   import java. util . *; import javax. ...

 
manual

SELECT clause (JPQL / Criteria API)

Explains how to use the SELECT clause and projections in a JPA/JPQL query.... the SELECT result expressions, as follows: package example ;   public class CountryAndCapital { ...

 
forum_thread

Wrong data stored in time only fields

This may be related to the fix for the problem described in this thread: Wrong data stored in date only fields. The object and its date and time fields are the same as in the referenced thread. Except we are using ObjectDB 2.6.4_08, the system time zone is set to EST and both the OS and JVM are using the 2015g time zone data. ... Here it is: package test ;   import java. text . ParseException ; ...

 
forum_thread

How to open a running db in ObjectDB Explorer?

Hi! I've just discovered that I can't see the content of a database while it's in use. Is there any way in which I could do that? It's not nice at all to close the application, copy the db in another location, start the application then finally I could explore my data, but it will be just a copy of the data, not the live information. #1 2013-05-25 18:08 Hi! I've just discovered that I can't see the content of a database while it's in use. Is the ...

 
release

2.5.4

... names (issue #186 ). Fixed accessing a package level JDO sequence using getSequence ( issue #186 ). ...

 
forum_thread

Upgrade to Java 8 won't run

I've been using ObjectDB with Groovy 2.1 and Java 7 for nearly a year.  Today, I updated everything to the latest revs (Groovy 2.3.6, Java 1.8.0_25, and ObjectDB 2.5.7_05), and now my application fails when opening the database. It's dying on one of these lines:   emf = Persistence.createEntityManagerFactory (dbName)   em = emf.createEntityManager()   em.setFlushMode(FlushModeType.AUTO)   ObjectDB.em = em   ... 36 more Caused by: java.lang.SecurityException: Prohibited package name: java.util at java.lang.ClassLoader.defineClass1(Native Method) at ...

 
forum_thread

Java 6/7 Performance Comparison

Hey, I've been using ObjectDB for a small scale home project to gain some familiarity before proposing it in a commercial project at work. What I've noticed though is that when using objectdb in embedded mode based on the console tutorial, there seems to be a bit of a performance gap running the same code between Java 6 & 7 Tracing it through I can see the bottle neck seems to be at the creation of the entity manager and I was wondering if there are any additional configuration options I may have missed while running under java 7. #1 2014-03-06 14:31 Hey, I've been using ObjectDB for a small scale home project to gain some familiarity before proposin ...

 
forum_thread

EntityManager JPA or JDO impl and different behavior

Hi, I have an issue with the EntityManager. My persistance XML looks like: <?xml version="1.0" encoding="UTF-8"?> <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> ... and I assumed that if the EMF is coming from the jpa package the EM would too, but may have been wrong. That still ...

 
forum_thread

NullPointerException in ENH.g(ENH.java:401)

Hi, I experience a NullPointerException inside the objectdb code with the following stacktrace: ... seems to be related to moving an entity class to a new package without backing this operation with a schema change declaration in ...

 
release

2.5.3

... names (issue #186 ). Fixed accessing a package level JDO sequence using getSequence ( issue #186 ). ...