About retrieve

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 ... one class loader and ObjectDB uses another class loader to retrieve entity objects. This may be caused by using ObjectDB as a ...

 
issue

Removing of an entity removes also another entity type

Hello, we have following case: ToleranceDefinition and ResolverMapping are entities and have not any relations each other. Before start transaction the ToleranceDefinition entities exist already in the database. ... entitymanager.remove(obj). Directly after remove we try to retrieve again the ResolverMapping entities from database and we get an empty ...

 
release

2.3.6

Release date: 2012-01-09 Download (5.38 MB) Binary:  objectdb-2.3.6.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

Level 2 cache not hit in @ManyToOne

Hi! I have 2 entities: User and Item, both @Cacheable. Item has @ManyToOne private User user. Level 2 JPA cache is activated and it works ok for find by id (tested by changing data in explorer and reading in my app). Problem 1: find by id on Item it's good, it hits the cache, but not for its field "user". "user" is loaded each time from the DB (tested by changing data in explorer and reading in my app). "user" should also be taken from L2 cache, shouldn't it? Otherwise...it's a huge performance hit. #1 2013-07-26 10:56 Hi! I have 2 entities: User and Item, both @Cacheable. Item has @ManyToOne private User user. Level 2 JPA ...

 
forum_thread

Memory Leak?

... I'm adding 1 million objects into it and then retrieve each of the object one by one. The object is key by Long. Here ...

 
issue

Error reading UTF string (Serialized Objects in Explorer)

This is the message I get for attached db and this query: Bug Version: 2.3.6 Priority: Normal Status: Fixed Replies: 6 Type:  Bug ...

 
forum_thread

Using the wrong class to access a database

Hello, just starting to test ObjectDB and ran into a problem. I've created a small program to test the Point database described in the Getting Started section: ... ) ;   create ( em ) ; retrieve ( em ) ;   deleteAndUpdate ( em ) ... ) ; }   static void retrieve ( EntityManager em ) { // 1 ...

 
release

2.4.5

Release date: 2012-12-13 Download (5.41 MB) Binary:  objectdb-2.4.5.zip You should start by following a  tutorial or reading the manual ...

 
release

2.4.4

Release date: 2012-10-13 Download (5.4 MB) Binary:  objectdb-2.4.4.zip You should start by following a  tutorial or reading the manual ...

 
release

2.3.2

Release date: 2011-10-25 Download (5.48 MB) Binary:  objectdb-2.3.2.zip You should start by following a  tutorial or reading the manual ...