About new

forum_thread

ClassCastException of same object type

I have ObjectDB partially working with my project. At the moment it seems to be saving objects and retrieving objects ok in the main project. However, when I make a plugin for the project, the new objects are persisted but not retrieved. I get the following error: java.lang.ClassCastException: org.sportscoring.ssv.xc.core.XCCompetitorCount cannot be cast to org.sportscoring.ssv.xc.core.XCCompetitorCount ... However, when I make a plugin for the project, the new objects are persisted but not retrieved. I get the following error: ... ArrayList <XCCompetitorCount> XCCompetitorCounts = new ArrayList<XCCompetitorCount>(); I then get the ... StorageMissingTypeException{   cop = new SSVXCObjectParcel();   cop.addListener(this);   ...

 
forum_thread

Date field Index is corrupted due to time change

Hi, can you shed some light on why we cannot delete data from the attached DB file. A delete attempt with DB explorer results in the following exception: ... error on http : //www.objectdb.com/database/issue/new com. objectdb . o . InternalException : null com. objectdb ... copy... 820 entity objects (total) have been migrated. New database copy is ready at: db/SystemDB.odb.rpmnew   ...

 
manual

SELECT clause (JPQL / Criteria API)

Explains how to use the SELECT clause and projections in a JPA/JPQL query.... fully qualified name of the result class is specified in a NEW expression, as follows: SELECT NEW example . CountryAndCapital ( c . name , c . capital . ...

 
forum_thread

index - data rewrite

Hi we have found that applying indexes on an existing table erases the data. Are we doing something wrong. Thanks ... Starting version 2.6.6 ObjectDB automatically activates new defined indexes. In earlier versions new indexes had no effect until the database was rebuilt using the Doctor. What ...

 
tutorial

Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in Eclipse.... them from the database: Open the [New Java Class] dialog box by right clicking the tutorial package node (in the [Package Explorer] window) and selecting New > Class . The package name should be tutorial . Enter ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in an Eclipse Java EE 6 web application.... class that we will define in this step: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting New > Class . The package name should be guest . Enter ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in a NetBeans Java EE web application.... that we will define in this step: Open the [New Session Bean] dialog box by right clicking the guest package node (in the [Projects] window), selecting New > Other... > Java EE (or Enterprise JavaBeans) > Session Bean ...

 
tutorial

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in an Eclipse Spring MVC JPA web application project.... a Spring MVC component: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting  New > Class . The package name should be  guest ...

 
tutorial

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in a NetBeans Spring MVC JPA web application project.... a Spring MVC component: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Projects] window under Source Packages) and selecting New > Java Class... . Enter  GuestDao as the ...

 
forum_thread

Database Inconsistency or corruption

Hi, since a week I have been trying to find a solution to a strange problem. We are using ObjectDB 2.6.8_02 im embedded mode. The problem is that data gets lost when updating an entity. 1-) Background Consider Three entities: ObjectValue, Attribute and Value. ObjectValue has a one to many relationship to Attribute and Attribute has a one to one relationship to Value. ... an Attribute means replacing a referenced Value with a new Value entity. 2-) Problem Description I initialized the database with some ObjectValues. Persisting new ObjectValues (with new Attributes and new Values) works fine. But, ...