About managed

forum_thread

How force always recreate database on redeployment.

Is there some easy way to force recreation/deletion of the current database on deployment of a web application (to Glassfish). My web application uses a @Singleton @Startup bean to create and persist a test model each run. I keep getting models on top of each other on rerunning my web application. Currently, to avoid multiple models in the database, I have to undeploy from Glassfish, stop the server, delete the database file, re-start the objectdb server, re-run the web app, which is tedious. #1 2012-03-03 09:32 Is there some easy way to force recreation/deletion of the current database on deployment of a web application (t ...

 
forum_thread

Field level privileges

Hello , we are currently making new instant messenger but we were planing to use some security addons and privileges on access some of the fields on java side.   Can we give privileges to users , for example some users can only read some fields and some just can write java fields. Some users only allowed insert ability. Anonymous access only accesses some of the fields. #1 2012-03-17 23:05 Hello , we are currently making new instant messenger but we were planing to use some security addons and privile ...

 
forum_thread

Problem with bidirectional link

(I had raised this issue in the past and have finally had time to come back to it and strip down the classes to a minimum). The problem seems to lie in having bidirectional links (viz, I have @OneToMany Map<String, Entry> children and @ManyToOne Entry parent in my classes. I've attached the offending classes. If I add an entry to the children I get an error. I'm wondering if it's a question of multiple references to the same instance of a class? It's hard to tell with the opaque code of ObjectDB. ... transaction: Attempt to persist a reference to a non managed Folder instance - field Folder.children (error 613) at ... Attempt to persist a reference to a non managed Folder instance - field Folder.children at ... Attempt to persist a reference to a non managed Folder instance - field Folder.children at ...

 
api-jpa

getAttributes()

Return the attributes of the managed type.(Method of javax.persistence.metamodel.ManagedType)

 
api-jpa

joinTransaction()

Indicate to the entity manager that a JTA transaction is active.(Method of javax.persistence.EntityManager)

 
api-jdo

getObjectId(pc)

Return a copy of the JDO identity associated with the parameter instance.(Method of javax.jdo.spi.StateInterrogation)

 
api-jdo

jdoGetObjectId()

Return a copy of the JDO identity associated with this instance.(Method of javax.jdo.spi.PersistenceCapable)

 
api-jpa

javax.persistence.PersistenceContext

Expresses a dependency on a container-managed EntityManager and its associated persistence context.(Annotation of JPA)

 
release

2.4.1

... execution. Fixed a bug in using non managed non enhanced entity objects as parameters or in criteria queries ( ... Fixed an "Attempt to persist a reference to a non managed instance" bug. Fixed internal  ...

 
api-jpa

createEntityManager(map)

Create a new application-managed EntityManager with the specified Map of properties.(Method of javax.persistence.EntityManagerFactory)