About persist

forum_thread

LDAP and ObjectDB

Hello, Is there any advantage in using LDAP with ObjectDB? I notice that I would still have to query the config for the credential, as well as query LDAP, a doubling of the work.   Thanks #1 2011-11-14 18:43 Hello, Is there any advantage in using LDAP with ObjectDB? I notice that I would still have ...

 
issue

Better OSGI Compability

We are currently using objectdb using osgi. However, the objectdb jar seems to be very monolithic and should be more modular to make it easier to use it with osgi, samples are: - Remove SWING dependency from core objectdb bundle - Externalize persistence and jdo apis and not putting them into objectdb jar (conflicts with glassfish jars otherwise) - Build objectdb as ready-made osgi jar bundle (We're doing this currently) Feature Request Version: 2.2.3 Priority: Normal Status: Fixed Replies: 2 Type:  Feature Request ...

 
api-jpa

getResultList()

Execute a SELECT query and return the query results as a typed List.(Method of javax.persistence.TypedQuery)

 
manual

Date and Time in JPQL and Criteria Queries

Shows how date and time can be used in JPQL queries. Date and time expressions may appear in JPQL queries: as date and time literals - e.g. {d '2011-12-31'} , {t '23:59:59'} . as parameters - when date and time values are assigned as arguments. ...

 
api-jdo

jdoIsDirty()

Tests whether this object is dirty.(Method of javax.jdo.spi.PersistenceCapable)

 
api-jdo

preStore(event)

Invoked whenever a persistent instance is stored, for example during javax.jdo.PersistenceManager.flush or javax.jdo.Transaction.commit.(Method of javax.jdo.listener.StoreLifecycleListener)

 
api-jdo

Constants.PROPERTY_ATTRIBUTE_VALUE

The name of the persistence manager factory property element's "value" attribute.(Static Field of javax.jdo.Constants)

 
api-jpa

javax.persistence.spi.ClassTransformer

A persistence provider supplies an instance of this interface to the PersistenceUnitInfo.addTransformer method.(Interface of JPA)

 
api-jpa

find(entityClass, primaryKey)

Find by primary key.(Method of javax.persistence.EntityManager)

 
forum_thread

Accessing objects to make them available after EntityManager close?!

Hi, I would like to get all the instances of an entity object. So I wrote a function which returns a list of these instances. My problem is if I print out these instances before closing the em and returning the list, it works as I expected; if not, the function returns only one field correctly, another field is always Null. The details is as follows: #1 2015-02-06 10:57 Hi, I would like to get all the instances of an entity object. So I wrote a function which returns a list ...