About @Embedded

issue

Unexpected exception (Error 990) - NullPointerException

I'm using Version 2.5.4_05 Maybe this Exception is created by calling em.merge()  - et least this is what I do in the named line. Bug Version: 2.5.4 Priority: Low Status: Fixed Replies: 3 Type:  Bug ...

 
forum_thread

How force always recreate database on redeployment.

Is there some easy way to force recreation/deletion of the current database on deployment of a web application (to Glassfish). My web application uses a @Singleton @Startup bean to create and persist a test model each run. I keep getting models on top of each other on rerunning my web application. Currently, to avoid multiple models in the database, I have to undeploy from Glassfish, stop the server, delete the database file, re-start the objectdb server, re-run the web app, which is tedious. #1 2012-03-03 09:32 Is there some easy way to force recreation/deletion of the current database on deployment of a web application (t ...

 
forum_thread

Project runs in Eclipse but not when exported to runnable jar

I have a simple project that performs some stability calculations and displays a scale drawing of a model glider. I decided to use objectdb as a way to persist the values for later retrieval. The project works perfectly well when run from eclipse but nothing opens when I export to a runnable jar and execute that. No windows open, there are no eror dialogs etc. Commenting out all the code related to object db resolves the issue and the project runs, so I'm fairly sure it is something I've done relating to objectdb. #1 2011-08-15 06:37 I have a simple project that performs some stability calculations and displays a scale drawing of a model glider. ...

 
api-jdo

javax.jdo.Query

The Query interface allows applications to obtain persistent instances, values, and aggregate data from the data store.(Interface of JDO)

 
forum_thread

can't get HashMap out of the database

I'm trying to persist an Entity containing a HashMap. It stores the data in the database OK, but the map is always empty when I get the entity out of the database again. I've reproduced this problem in a simple variation of the Guestbook tutorial: Guest class: ===================== #1 2011-11-04 09:35 I'm trying to persist an Entity containing a HashMap. It stores the data in the database OK, but the map is a ...

 
forum_thread

explorer NullPointerException

I studied ObjectDB a few hours ago and got some problems when use explorer . I run it and right-click in 'Open local database' window,and the all the pop menu item is gray and disabled,such as ‘new database’,'new directory','cut','copy' ... if I click 'tools---oprions' before open database, the errot I got is: [2012-05-21 09:51:11 #1 explorer] java.lang.NullPointerException at com.objectdb.o.CNC.p(CNC.java:253) at com.objectdb.o.EHL.d(EHL.java:55) at com.objectdb.o.VPN.(VPN.java:60) at com.objectdb.o.OPD.(OPD.java:69) at com.objectdb.o.OPD.(OPD.java:42) #1 2012-05-21 01:22 I studied ObjectDB a few hours ago and got some problems when use explorer. I run it and right-click in & ...

 
issue

com.objectdb.o.InternalException

No idea what happened.  A simple getResultList() opearation. DB table affected size is ~ 26000 records, physical DB file size is ~ 8.5MB Thanks for any help ! Leon log file: ------------------------------------------------------------------------------------------------------------------------ [2016-07-13 19:58:12 #1 store] Database '/home/gsi/wdsync/db/Media_wdsync.odb' is opened by 12659@server Bug Version: Priority: Normal Status: Closed Replies: 2 Type:  Bug ...

 
forum_thread

Extending model by "common entity"

Hi, I have a question about extending working model with one, common entity, that all other entities will inherit from. For example I have 2 different entities in database with some data: #1 2011-02-06 13:38 Hi, I have a question about extending working model with one, common entity, that all other entities will ...

 
manual

Index Definition

Describes how to define indexes in JPA entity classes and explains how indexes are used in JPQL queries. Querying without indexes requires iteration over entity objects in the database one by one. This may take a significant amount of time if many entity objects have to be examined. Using proper indexes the iteration can be avoided and complex queries ov ...

 
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. Bug Version: 2.4.0 Priority: Normal Status: Fixed Replies: 3 Type:  Bug ...