About version

71-80 of 200Refresh
Tutorial
10

Step 2: Entity Class and Persistence Unit

of the persistence.xml file with the following new content: version="1.0" encoding="UTF-8"?> version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"  xmlns:xsi="http://www.w3.org/2001
Tutorial
10

Step 2: Entity Class and Persistence Unit

to the persistence.xml file: version="1.0" encoding="UTF-8"?> version="2.0" xmlns="http
Tutorial
10

Step 2: Entity Class and Persistence Unit

of the persistence.xml file with the following new content: version="1.0" encoding="UTF-8"?> version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001
Tutorial
10

Step 2: Entity Class and Persistence Unit

, use copy and paste to copy the following content to the persistence.xml file: version="1.0" encoding="UTF-8"?> version="2.0" xmlns="http://java.sun.com/xml/ns/persistence
Result
10

Upgrade from ObjectDB 1.0

The following pages should be read by ObjectDB 1.0 users: If you need help in upgrading your application from version 1.0 to version 2.0 - please feel free to contact ObjectDB Support.
Manual
10

Retrieving JPA Entity Objects

is returned. A similar method, getReference, can be considered the lazy version of find: Employee ... with the most up to date version of an entity object, just in case it might have been changed by another EntityManager
JPA Doc
8

javax.persistence.metamodel.EntityType

the attribute that corresponds to the version attribute declared by the entity or mapped superclass. Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared version attribute Returns: declared
JPA Doc
8

javax.persistence.metamodel.IdentifiableType

the attribute that corresponds to the version attribute declared by the entity or mapped superclass. Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared version attribute Returns: declared
JPA Doc
8

javax.persistence.metamodel.MappedSuperclassType

to the version attribute declared by the entity or mapped superclass. Return the attribute that corresponds to the version attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared version attribute Returns: declared version attribute Throws
JDO Doc
7

javax.jdo.JDOEntityManager

context and the lock mode type is pessimistic and the entity has a version attribute, the persistence provider must perform optimistic version checks when obtaining the database lock. If these checks fail ... OptimisticLockException - if the optimistic version check fails PessimisticLockException - if pessimistic locking