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

'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 ...

 
forum_thread

Retrieval by Access bug?

Dear Sirs, I have an object A, that has a OneToMany FetchType.EAGER List of objects B, that has a field with a reference to an object C. I have this code: ClassA objectA = em.find(ClassA.class, 1); for (ClassB objectB : objectA.getListB()) {     ClassC objectC = objectB.getObjectC(); } em is an open Entity Manager with a running transaction. ... ( ) ; } em is an open Entity Manager with a running transaction. Almost all the time that I ...

 
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

Inheritance.strategy

The strategy to be used for the entity inheritance hierarchy.(Annotation Element of javax.persistence.Inheritance)

 
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

PrimaryKeyJoinColumn.referencedColumnName

(Optional) The name of the primary key column of the table being joined to.(Annotation Element of javax.persistence.PrimaryKeyJoinColumn)