About Persistence Context

issue

new objects not available in mappedBy associations

Given a mappedBy association: e.g: @OneToMany(mappedBy="department") public List <Employee> employees;   creating a new mapped class, e.g. new Employee, won't result in this object being available in the same transaction: ie: for (Employee e : department.employee) won't include the new object, even if it is persisted, and even if the transaction is committed??  ... refresh an object? http://www.objectdb.com/java/jpa/persistence/retrieve#Retrieval_by_Refresh > If the mappedby tag maps ... again from the database (and not from the persistence context cache), or refresh is invoked. ObjectDB ...

 
forum_thread

Sample JDO Architecture for Follow Up Questions

I am trying to finalize on my application's JDO and ObjectDB archieture.  I have done documentation survey (reading JDO books, studying ObjectDB's documents and forum) and have designed what I think is the best architecture for my particular application usage model. ... understanding of the proposed architecture (i.e. a proper context) is required.  So, I will explain my architecture in this forum ... have my other threads refer to this architecture for their context. * I attached an architecture diagram that summarizes the ...

 
forum_thread

Using Enum type in NamedQuery: Field is not found in type

I'm trying to switch an application that worked fine in Hibernate to ObjectDB and am having issues with queries that reference enum types. On my entity object is a static enum public static enum Type {     A,B,C } that is stored in an @Enumerated member variable private Type type; @Enumerated public Type getType() {     return type; } I then try to query this field in the following JPA Named Query ... import java. util . *;   import javax. persistence . *;     public final class F554 { ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

@Unique member combination not working

Why does the below code not enforce unique restrictions?   Person.java ... javax. jdo . annotations . *; import javax. persistence . *;     public final class F864 { ... Thanks, it worked. I was using servlet context because I thought that using static variables in a multi-threaded ...

 
forum_thread

find() cost unreasonable time!

Hi, I make a full binary tree of 4095 node, I check the first 9 node, but the root cost 24 seconds, why? Result: ... java. util . List ;   import javax. persistence . DiscriminatorColumn ; import javax. persistence ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check" system property) The following is a detailed report on investigation of multiple issues that have been mentioned in the following forum postings and issue reports (but please do not visit them from here now, the diagnostics there are now obsolete): - Issue #282 - ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection ... my "console" test app in NetBeans IDE using the Run context menu it was in fact over-writing the enhanced .class files ! ... [EDIT: contrary to my original report, to prevent the persistence error one can explicitly ... does NOT report on anything other than errors during persistence, that is no conclusions are drawn yet about whether ObjectDB can ...

 
forum_thread

Caching/Paging 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 set and hold the results 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 ?... maximum memory size of ObjectDB L2 cache or EntityManager context ? Q4: Would paging result sets via setFirstResult and ... execution is not affected directly by the content of the persistence context (the EntityManager L1 cache) but instantiation of the ...

 
api-jdo

javax.jdo.InstanceCallbacks

A PersistenceCapable class that provides callback methods for life cycle events implements this interface.(Interface of JDO)

 
issue

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

Hello! When the JPA entities are not enhanced the remove of an entry from a @OneToMany collection is not possible. The following java code demonstrates the problem. The statement parentEntity.getChildEntityContainer().remove("01"); does not work with not enhanced JPA entities. ... java. util . Map ;   import javax. persistence . CascadeType ; import javax. persistence . ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
manual

JPA Criteria API Queries

Explains how to use the JPA Criteria API (CriteriaBuilder, CriteriaQuery, etc.) to build JPQL like queries.... API as follows: CriteriaBuilder javax.persistence.criteria.CriteriaBuilder JPA interface Used to ... Interface used to interact with the persistence context. See JavaDoc Reference Page... 's getCriteriaBuilder ...