ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
194

UPDATE SET Queries in JPA/JPQL

Existing entity objects can be updated, as explained in chapter 2, by: Retrieving the entity objects into an EntityManager. Updating the relevant entity object fields within an active transaction. Applying changes to the database by calling the commit method. JPQL UPDATE queries provide
181

Updating JPA Entity Objects

persistence, which means that changes are detected and handled automatically. Transparent Update ... (); The entity object is physically updated in the database when the transaction is committed. If the transaction is rolled back and not committed the update is discarded. On commit the persist operation
166

Schema Update

ObjectDB tries to apply the specified schema updates every time a database is opened. When using client ... side where the up to date classes are located. The following <schema> element demonstrates the supported schema update
117

Update more than 10000 entities by an update query fails

Hello, following example tries to update more than 10000 entities by an update query. But only the first 10000 elements are updated. What's wrong? public class updateMoreThan10000Elements ... .setFlushMode(FlushModeType.AUTO); { String query = "UPDATE " + MyModelElement.class
49

MapKeyColumn.updatable

Annotation Element javax.persistence.MapKeyColumn boolean updatable (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Default value: true Since: JPA 2.0
49

Column.updatable

Annotation Element javax.persistence.Column boolean updatable (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Default value: true Since: JPA 1.0
49

OrderColumn.updatable

Annotation Element javax.persistence.OrderColumn boolean updatable (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Default value: true Since: JPA 2.0
49

JoinColumn.updatable

Annotation Element javax.persistence.JoinColumn boolean updatable (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Default value: true Since: JPA 1.0
49

MapKeyJoinColumn.updatable

Annotation Element javax.persistence.MapKeyJoinColumn boolean updatable (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Default value: true Since: JPA 2.0
21

Locking in JPA

update collisions resulting from simultaneous updates to the same data by two concurrent users. Locking ... that has to be updated or deleted is checked. An exception is thrown if it is found out that an update is being performed on an old version of a database object, for which another update has already been committed

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