ObjectDB ObjectDB

Internal Website Search

121-130 of 200 resultsRefresh

Recursive calls with @PreUpdate annotation and Glassfish OutOfMemoryError

, which extends a BaseEntity. The BaseEntity has a @PreUpdate as per: @PreUpdate public void update(){ System.out.println(" ********* Called update() **********"); lastUpdatedDate = new Date ... is running embedded. Example output of error .... ********* Called update

Pessimistic Lock Timeouts setting

again for the prompt answers. In the meantime, I'll use an optimistic lock and fail on stale updates. Willks ... * invocationCount=50 (that is a pretty aggressive test) Exception is: Failed to update object com.x.y.z ... haven't updated this thread. I have not got the issue again and I consider

Entity listener - event instead of object

in updated entity. There is a problem however with accessing "old" version of object stored in ... value: {}, new value: {}, actor: {}, date: {}", new Object[] { OPERATION_TYPE_UPDATE, entityName ...                                 .toString() : null, OPERATION_TYPE_UPDATE, actorId, transTime


Method javax.persistence.Query int executeUpdate() Execute an update or delete statement. Returns: the number of entities updated or deleted Throws: IllegalStateException - if called for a Java Persistence query language SELECT statement or for a criteria query TransactionRequiredException


., for update or delete. Create an instance of Query for executing a native SQL statement, e.g., for update or delete. Parameters: sqlString - a native SQL query string Returns: the new query instance


object, the persistence provider is responsible for ensuring that all updates to the state ... of updates made to entities in the persistence context upon queries is unspecified

Removing of an entity removes also another entity type

.1_03. btc_es BTC EmbeddedSystems OK. Thanks for the update. Please note that mixing direct DELETE / UPDATE database queries with EntityManager's operations is known as problematic. It is not specific to ObjectDB but general to JPA. DELETE / UPDATE JPA queries bypass the EntityManager mechanism


Annotation Element javax.jdo.annotations.ForeignKey ForeignKeyAction updateAction The update action of this foreign key. Returns: the update action of this foreign key Default value: javax.jdo.annotations.ForeignKeyAction.RESTRICT Since: JDO 2.1


Annotation Element javax.jdo.annotations.Key ForeignKeyAction updateAction Update action to apply to the foreign key for the key. Returns: update action to apply to the foreign key for the key Default value: javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED Since: JDO 2.1


Annotation Element javax.jdo.annotations.Value ForeignKeyAction updateAction Update action to apply to any foreign key for the value. Returns: update action to apply to any foreign key for the value Default value: javax.jdo.annotations.ForeignKeyAction.UNSPECIFIED Since: JDO 2.1

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support