About retrieve

manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps. The term persistable types refers to data types that can be used in storing data in the database. ObjectDB supports all the JPA persistable types, which are: User defined classes - Entity classes, Mapped superclasses, Embeddable cl ...

 
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

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 ...

 
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

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 ...

 
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

Performance with large databases

When populating a large database (10s of GBs) performance drops suddenly at a certain time whenever I run the populating application.  Is there typically a database size when indexes can no longer be held fully in memory or some such issue?  The method calls that suddenly start to take the most time are those that retrieve data from the store. ... that suddenly start to take the most time are those that retrieve data from the store. ...

 
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 ...

 
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.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 ...