About persistence unit

31-40 of 200Refresh
JPA Doc
20

javax.persistence.TableGenerator

javax.persistence Annotation TableGenerator Target: Classes and fields (including property ... on the primary key field or property. The scope of the generator name is global to the persistence unit (across all generator types). Example 1: @Entity public class Employee
JPA Doc
19

javax.persistence.NamedNativeQueries

javax.persistence Annotation NamedNativeQueries Target: Classes Used to specify multiple native SQL named queries. Query names are scoped to the persistence unit. The NamedNativeQueries annotation can be applied to an entity or mapped superclass. Since: JPA 1.0 See Also: NamedNativeQuery
JPA Doc
19

javax.persistence.NamedNativeQuery

javax.persistence Annotation NamedNativeQuery Target: Classes Specifies a named native SQL query. Query names are scoped to the persistence unit. The NamedNativeQuery annotation can be applied to an entity or mapped superclass. Since: JPA 1.0 QueryHint[] hints Query properties and hints. Query
JPA Doc
19

javax.persistence.SequenceGenerator

to the persistence unit (across all generator types). Example: @SequenceGenerator(name="EMP_SEQ ... javax.persistence Annotation SequenceGenerator Target: Classes and fields (including property get methods) Defines a primary key generator that may be referenced by name when a generator element
Manual
19

JPA Named Queries

class. But since the scope of named queries is the entire persistence unit, names should be selected ... the listing of managed classes in a persistence unit definition is to support named queries. Notice ... must be available. ObjectDB makes the definition of a persistence unit optional. Named queries
Manual
18

JPA Metamodel API

(); If managed classes are not listed in the persistence unit (which is optional when using ObjectDB ... can also be used with types that are still unknown to ObjectDB (not listed in the persistence unit ... The JPA Metamodel API provides the ability to examine the persistent object model and retrieve
Result
17

Posting to ObjectDB Website - Important Instructions

(preferred over JUnit). Use embedded mode to connect to the ObjectDB database directly (no persistence unit ... contain a persistence unit, An entity or IdClass class should implement the java.io.Serializable interface). ... ; import java.util.*; import javax.persistence.*; public final class MyTestCase {     public
Result
17

Posting to ObjectDB Website - Important Instructions [2018-08-06]

(preferred over JUnit). Use embedded mode to connect to the ObjectDB database directly (no persistence unit ... contain a persistence unit, An entity or IdClass class should implement the java.io.Serializable interface). ... ; import java.util.*; import javax.persistence.*; public final class MyTestCase {     public
Manual
16

Setting and Tuning of JPA Queries

to local): For the entire persistence unit - using a persistence.xml property:     persistence.query.timeout" - sets maximum ... . "javax.persistence.lock.timeout" - sets maximum waiting time for pessimistic locks, when pessimistic
Manual
15

Locking in JPA

can be set in several scopes: For the entire persistence unit - using a persistence.xml property:             persistence.lock.timeout" hint