About true

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 ... cop.add(ico);   }   this.loaded = true;   return cop; } When the query is run, debugging ...

 
tutorial

Step 1: Create a Maven Web Project

Explains how to create a NetBeans Web Maven project with Spring and ObjectDB/JPA support.... > <daemon > true </daemon > </configuration > ...

 
forum_thread

Beginners questions

Hello !! I am new in JPA / ObjectDB development and I have many questions: 1. If I understood correctly, ObjectDB is an implementation of JPA standard (currently 2.0)? 1.1. Is ObjectDB on the same level like Hibernate with only difference that Hibernate stores the data in a RDBMS and ObjectDB has its own format?   ... is different than the old value, then I call setChanged(true). Is there a better way to manage such changes (maybe automatically?). ...

 
forum_thread

Multi part paths in a composite index must have the same length

Hi, I am trying to create some index in a DB - but I get an exception when i try to commit. Exception in thread "main" [ObjectDB 2.6.0_01] javax.persistence.PersistenceException Invalid index path 'tStamp.value / instrumentId' in type Entities.OrderBookNew (error 328) at com.objectdb.jpa.EMImpl.createQuery(EMImpl.java:958)   Here is how the class of the persisted object looks like ... ( "objectdb.temp.flexible-composite-index" , "true" ) ;   EntityManagerFactory emf = ...

 
manual

Shared (L2) Entity Cache

Explains how to set and use the EntityManagerFactory's shared cache (L2 / level 2) in JPA 2.... See JavaDoc Reference Page... // or @Cacheable(true) @Entity javax.persistence.Entity JPA annotation ...

 
manual

Database Schema Evolution

Explains how ObjectDB handles automatically schema changes.... converted to false , any other value is converted to true ). From any type to String (using toString() if ...

 
forum_thread

@ElementCollection query returning extra result per element in collection

Hi, ... ( companyRoot ) . distinct ( true ) ; ObjectDB Support ObjectDB - ...

 
forum_thread

Configure ObjectDB in spring context

I have a application that initializes with spring, now I'd like to change my data access tier to ObjectDB (from Hibernate : HSQL), but I couldn't find any useful information on it. My goal is to configure entire ObjectDB (optionally objectdb.conf too) in springs context.xml file so that I'd be able to inject EntityManagerFactory to my beans. Could you help me on this? ... <prop key = "hibernate.format_sql" > true </prop > <prop key = ...

 
release

2.3.5

... #78 ). Added support of @Column(unique="true") and equivalent ORM XML ( issue #79 ). Fixed ...

 
forum_thread

Start ObjectDB inside java code.

I am building an MMORPG with ObjectDB, and I use it both for the saving of character and inventory (permanent object), but also the storing of ability and maps information (object I load, use, and dispose and then reuse without having change anything). The problems is, as my server and client both run on the same machine and more than one client can be started, they all need access to this information without being able to share any thread, so am forced to use the server model. ... <embedded-server enabled="true" /> <server/> I did try String [] ...