About Entity

forum_thread

Explorer doesn't open file

Explorer doesn't open file...see attached error message and odb.  Explorer doesn't cleanly close the connection either (due to error I presume). Many thanks Russ ...  I shouldn't have been storing TimeUnit in the entity anyway as it is not a persistable type but it was in a super class and I ...

 
issue

InternalException: null

Hi! when I run my application where 10 threads are concurrently accessing ObjectDB (only reading) via using ExecutorService, then these 2 mistakes are coming rapidly: 1. ... Caused by: com.objectdb.o._JdoObjectNotFoundException: Entity is not found: eu.extech.data.versioning.ProductVersionHistory#3669 at ...

 
forum_thread

Performance Questions...

Greetings ObjectDB team, All below questions assume a very large database (~1,000,000,000 objects) Q1: Two queries with a big overlap between their result sets. If I query the first and hold them in memory somehow, would that speed up the execution of the second query since many of its result objects already created and reside in memory ? Q2: Do I need to manually use strong references to such cached result objects ? or do ObjectDB exploits frequency of querying such objects and keep them in memory longer automatically somehow before GC takes place ?... versions of ObjectDB might share an L1 cache of read only entity managers automatically. Even though ObjectDB implements LIKE very ...

 
issue

Bean Validation (JPA 2.0)

JPA 2 adds support for integration with the Bean Validation API. Constraints are added to entity and embeddable classes by annotations, and can be checked automatically on PrePersist, PreUpdate and PreRemove lifecycle events. Integration with the Validation API is currently not supported by ObjectDB.... Bean Validation API. Constraints that are defined for entity and embeddable classes by using annotations can be checked automatically ...

 
api-jpa

OrderBy.value

An orderby_list.(Annotation Element of javax.persistence.OrderBy)

 
api-jpa

EntityResult.fields

Maps the columns specified in the SELECT list of the query to the properties or fields of the entity class.(Annotation Element of javax.persistence.EntityResult)

 
forum_thread

substring works with string but not with char

i want to select all entities whose name starts with a specific letter, i can use this query with a string parameter select f from Foo f where substring(f.name, 1, 1) = ?1 but when i use a char, the query does not return anything. i think it should also be possible to use char/Character types, do you agree? #1 2011-05-17 21:06 i want to select all entities whose name starts with a specific letter, i can use this query with a string parame ...

 
api-jpa

javax.persistence.NamedQueries

Specifies multiple named Java Persistence query language queries.(Annotation of JPA)

 
api-jpa

javax.persistence.PersistenceContexts

Declares one or more PersistenceContext annotations.(Annotation of JPA)

 
forum_thread

Cache configuration of database file pages, query programs, query results

Are there some possibilities to configure following caches in order to keep cache data for only some important entity types and for the entire life cycle of the EntityManagerFactory. Cache of database file pages. Cache of query programs. Cache of query execution results. ... caches in order to keep cache data for only some important entity types and for the entire life cycle of the EntityManagerFactory. ...