About Persistence Context

issue

Integration with Java EE (JPA 1.0)

ObjectDB can be used in both Java EE and Java SE by using application managed EntityManager. Support of container managed EntityManager and integration with the JTA (Java Transaction API) is not implemented yet.... SE by using application managed EntityManager javax.persistence.EntityManager JPA interface Interface used to interact with the persistence context. See JavaDoc Reference Page... . Support of container ...

 
api-jpa

contains(entity)

Check if the instance is a managed entity instance belonging to the current persistence context.(Method of javax.persistence.EntityManager)

 
forum_thread

Database(*.odb) file size on disk

Hello, we have questions about the file size of ObjectDB database on disk. Can you tell us something about how the deleting of entities affects the size of *.odb files on disk? -Will the released memory always used by new entities? -Will be the database file automatically reduced?   We have created a small test, in which we create and delete entities. It looks like that the released memory are reused but the the file not resized. The database is at the end empty again, but larger than the initial size. ... java. util . List ;   import javax. persistence . Basic ; 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

How to use JOIN FETCH?

The ObjectDB manual (http://www.objectdb.com/java/jpa/query/jpql/from) gives an example of using JOIN FETCH to avoid excessive round trips to the database: ... java. util . Map ;   import javax. persistence . Entity ; 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

Database Explorer

Explains how to run and use the ObjectDB object database Explorer to view and manage Java/JPA/JDO objects visually.... of the Edit > Delete command depends on the context. Deleting a reference field sets the value to null without deleting any ... a viewer window (Table or Tree) and using the [Set View] context menu command.   ...

 
forum_thread

Run out of memory

Hi, I've been looking into ObjectDB for our use, where everything has been great apart from I'm stuck on the following problem.   I am trying to load a large file (> 1GB), process certain information and store it back in the database to access / modify later. I require to be able to rollback changes as well, where there can be massive amount of changes.   ... the batch shown at http://www.objectdb.com/java/jpa/persistence/store#Batch_Store_ . However the problem is that it seems that ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

Database connection url

I'd like to run a database called db1.odb on port 6136, and simultaneously open it in the explorer. I left the conf file set as: <server> <connection port="6136" max="100" /> <data path="$objectdb/db-files" /> </server> However, I'm not sure about the connection url for the code, and for the explorer. I tried this: Transactor.emf = Persistence.createEntityManagerFactory ("$objectdb/db1.odb");... I tried this: Transactor. emf = Persistence . createEntityManagerFactory ( "$objectdb/db1.odb" ... Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell ...

 
forum_thread

"Attempt to lock a non entity object" error

Probably a simple answer for someone who's been using ObjectDB for awhile: I'm reading objects from the database outside a transaction (inside doesn't seem to matter). First cycle of doEdit and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity object" session.rollback() is somehow causing the problem (found through debugging) Is this enough information for someone to suggest what might be happening and how to fix it? ... - by: "The following operations clear the entire persistence context and detach all managed entity objects: ... Rolling back a ...

 
manual

Database Explorer

Explains how to run and use the ObjectDB object database Explorer to view and manage Java/JPA/JDO objects visually.... of the Edit > Delete command depends on the context. Deleting a reference field sets the value to null without deleting any ... a viewer window (Table or Tree) and using the [Set View] context menu command. ...

 
issue

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

I have marked this as CRITICAL because although there probably is no database integrity problem, the inability to robustly query relationship fields in a web application renders the ObjectDB system seemingly useless. objectdb-2.2.5_10 NetbeansIDE6.9.1 Glassfish3.01 client-server mode. odb file written to db-files/greendesk/greendesk.odb (see persistence.xml), copy of odb output attached. ... odb file written to db-files/greendesk/greendesk.odb (see persistence.xml), copy of odb output attached. Sorry this is a complex ... completes - all the entity objects in the persistence context are detached. Because the ownedElements relationship is defined as ...