About Entity

forum_thread

Session lost

hi team we are implementing a web application based on the Liferay, system database is handled by JPA 2.0 and entity manager. when system is idle for a long period (for example 8 hours) the Session in the Persistance Context will be lost and the DB will be out of the access, is there any possible configuration which can fix this problem.......... best ... on the Liferay, system database is handled by JPA 2.0 and entity manager. when system is idle for a long period (for example 8 ...

 
forum_thread

Pessimistic lock

Dear Sir or Madam, In the past we used the default Options in the JDO 1.0. See below for reference: javax.jdo.option.Optimistic=false javax.jdo.option.NontransactionalRead=true javax.jdo.option.NontransactionalWrite=false javax.jdo.option.RetainValues=true javax.jdo.option.RestoreValues=false Now we use the following options in DB2: ... "com.objectdb.o._JdoUserException: Attempt to lock an entity object by retrieval when no transaction is activ." This is only in DB2. ...

 
forum_thread

@OrderColumn issue

Hi All, For some reason I'm not able to make the @OrderColumn annotation work. The test case is attached to the thread. Kind regards ... ignored by ObjectDB. This is because ObjectDB does not map entity objects to underlying tables and therefore does not handle columns. ...

 
forum_thread

'DROP TABLE' in ODB?

Let's say I no longer need some entity in my project and after deleting all the objects of this type in database I want to remove this type from schema. How can I do this? Is there something like SQL 'drop table' in ODB? ... Let's say I no longer need some entity in my project and after deleting all the objects of this type in ...

 
api-jpa

Table.name

(Optional) The name of the table.(Annotation Element of javax.persistence.Table)

 
api-jpa

javax.persistence.PreUpdate

Is used to specify callback methods for the corresponding lifecycle event.(Annotation of JPA)

 
api-jpa

getObject()

Returns the object that caused this exception.(Method of javax.persistence.LockTimeoutException)

 
api-jpa

JoinTable.inverseJoinColumns

(Optional) The foreign key columns of the join table which reference the primary table of the entity that does not own the association.(Annotation Element of javax.persistence.JoinTable)

 
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

javax.persistence.metamodel.CollectionAttribute

Instances of the type CollectionAttribute represent persistent java.util.Collection-valued attributes.(Interface of JPA)