Internal Website Search
51-100 of 200 resultsConfigure ObjectDB in spring context creating persistance .xml file. My previous database.xml (which is included in application- context .xml ... is to configure entire ObjectDB (optionally objectdb.conf too) in springs context .xml file so that I'd ... ", environment.getRequiredProperty("objectdb.conf")); EntityManagerFactory emf = Persistence | |
Puzzler: Not getting cascades on read from Spring context. My best guess is that perhaps I have something misconfigured in my persistence .xml or my context .  | |
javax.persistence.PersistenceContextType.EXTENDED JPA Enum Constant in javax. persistence .PersistenceContextType EXTENDED Extended persistence context Since: JPA 1.0 | |
javax.persistence.PersistenceContextType.TRANSACTION JPA Enum Constant in javax. persistence .PersistenceContextType TRANSACTION Transaction-scoped persistence context Since: JPA 1.0 | |
javax.persistence.criteria.CriteriaDelete to database delete operations. The persistence context is not synchronized with the result | |
javax.persistence.PersistenceUnit.name JPA Annotation Attribute in javax. persistence .PersistenceUnit String name default "" (Optional) The name by which the entity manager factory is to be accessed in the environment referencing context ; not needed when dependency injection is used. Since: JPA 1.0 | |
javax.persistence.MapKeyJoinColumn.name JPA Annotation Attribute in javax. persistence .MapKeyJoinColumn String name default "" (Optional) The name of the foreign key column for the map key. The table in which it is found depends upon the context . If the join is for a map key for an element collection, the foreign key column is in | |
javax.persistence.MapKeyColumn.name JPA Annotation Attribute in javax. persistence .MapKeyColumn String name default "" (Optional) The name of the map key column. The table in which it is found depends upon the context . If the map key is for an element collection, the map key column is in the collection table for the map value | |
javax.persistence.PersistenceContexts JPA Annotation PersistenceContexts Target: TYPE Implemented Interfaces: Annotation Declares one or more PersistenceContext annotations. It is used to express a dependency on container-managed entity manager persistence contexts . See Also: PersistenceContext Since: JPA 1.0 Public Annotation | |
javax.persistence.PersistenceContext.name JPA Annotation Attribute in javax. persistence .PersistenceContext String name default "" (Optional) The name by which the entity manager is to be accessed in the environment referencing context ; not needed when dependency injection is used. Since: JPA 1.0 | |
javax.persistence.JoinColumn.name JPA Annotation Attribute in javax. persistence .JoinColumn String name default "" (Optional) The name of the foreign key column. The table in which it is found depends upon the context . If the join is for a OneToOne or ManyToOne mapping using a foreign key mapping strategy, the foreign key column | |
javax.persistence.criteria.CriteriaUpdate manually validate the value of the version column. The persistence context is not synchronized | |
javax.persistence.MappedSuperclass mappings will apply in the context of the subclass tables. Mapping information may be overridden in | |
Storing JPA Entity Objects New entity objects can be stored in the database either explicitly by invoking the persist method or implicitly as a result of a cascade operation. Explicit Persist The following code stores ... ", "Joseph", "Wurzelbacher"); em. getTransaction (). begin (); em. persist (employee); em. getTransaction | |
JPA Query API ObjectDB. In the context of the queries above, if there are no Country instances in the database | |
Query Parameters in JPA appearing in the query string. The parameter type is inferred by the context . In the above example | |
Database Server application is represented by an icon in the Windows Tray. Right click the icon and use the context | |
JPA Entity Fields Fields of persistable user defined classes (entity classes, embeddable classes and mapped superclasses) can be classified into the following five groups: Transient fields Persistent fields Inverse ... , persistent and inverse fields) can be used in both entity classes and embeddable classes . However, the last | |
javax.persistence.Persistence.PERSISTENCE_PROVIDER JPA Static Field in javax. persistence . Persistence PERSISTENCE _PROVIDER This final String is deprecated and should be removed and is only here for TCK backward compatibility Since: JPA 1.0 | |
JPA Class Enhancer of compiled classes after compilation. Enhancement is mainly for user-defined persistable classes ... . There is one case, however, where enhancement is required. Non persistable classes that access directly (not through methods) persistent fields of enhanced classes must also be enhanced. It is a good practice | |
javax.persistence.Persistence JPA Class Persistence java.lang.Object ∟ javax. persistence . Persistence Bootstrap class ... schema generation to occur. The Persistence class is available in a Java EE container environment as ... . The Persistence class is used to obtain a PersistenceUtil instance in both Java EE and Java SE | |
javax.persistence.CascadeType.PERSIST JPA Enum Constant in javax. persistence .CascadeType PERSIST Cascade persist operation Since: JPA 1.0 | |
Database Connection using JPA Working with the Java Persistence API (JPA) consists of using the following interfaces: Overview ... a static factory method of the JPA bootstrap class, Persistence : EntityManagerFactory emf = Persistence . createEntityManagerFactory ("objectdb:myDbFile.odb"); Another form | |
Defining a JPA Entity Class Point objects from the database: package com.objectdb.tutorial; import javax. persistence .Entity; @Entity public class Point { // Persistent Fields: private int x; private int y; // Constructor: Point ... an entity class. An attempt to persist Point objects in the database without marking the Point class | |
JPA Exceptions.Throwable java.lang.Exception java.lang.RuntimeException javax. persistence .PersistenceException javax. persistence .EntityExistsException javax. persistence .EntityNotFoundException javax. persistence .LockTimeoutException javax. persistence .NonUniqueResultException javax. persistence .NoResultException | |
Setting and Tuning of JPA Queries supports the following query hints: "javax. persistence .query.timeout" - sets maximum query execution time ... . persistence .lock.timeout" - sets maximum waiting time for pessimistic locks, when pessimistic locking ... ): For the entire persistence unit - using a persistence .xml property:   | |
Paths and Types in JPQL and Criteria API Instances of user defined persistable classes (entity classes, mapped super classes and embeddable ... defined persistable classes can participate in direct comparison using the = and operators ... expression) and uses the dot ( . ) operator to navigate through persistent fields to other objects | |
javax.persistence.OrderColumn a column that is used to maintain the persistent order of a list. The persistence provider is responsible for maintaining the order upon retrieval and in the database. The persistence provider ... for ordering that is visible as persistent state and maintained by the application. The OrderBy annotation | |
javax.persistence.PersistenceUnitUtil the application and the persistence provider managing the persistence unit. The methods ... for this persistence unit or on new entity instances. Since: JPA 2.0 Public Methods Object getIdentifier ... the load state of an entity belonging to the persistence unit. This method can be used to determine | |
javax.persistence.EnumType JPA Enum EnumType java.lang.Object ∟ java.lang.Enum ∟ javax. persistence .EnumType Defines mapping for enumerated types. The constants of this enumerated type specify how a persistent property or field of an enumerated type should be persisted . Since: JPA 1.0 The JPA Persistable Types | |
javax.persistence.PessimisticLockScope JPA Enum PessimisticLockScope java.lang.Object ∟ java.lang.Enum ∟ javax. persistence .PessimisticLockScope Defines the values of the javax. persistence .lock.scope property for pessimistic ... will be locked if the javax. persistence .lock.scope property is specified with a value | |
Persistence.createEntityManagerFactory(persistenceUnitName,properties) - JPA Static Method JPA Static Method in javax. persistence . Persistence EntityManagerFactory createEntityManagerFactory ... and return an EntityManagerFactory for the named persistence unit using the given properties. Parameters: persistenceUnitName the - name of the persistence unit properties Additional - properties to use | |
Persistence.createEntityManagerFactory(persistenceUnitName) - JPA Static Method JPA Static Method in javax. persistence . Persistence EntityManagerFactory createEntityManagerFactory ... for the named persistence unit. Parameters: persistenceUnitName the - name of the persistence unit Return: the factory that creates EntityManagers configured according to the specified persistence unit Since: JPA 1.0 | |
javax.persistence.ValidationMode JPA Enum ValidationMode java.lang.Object ∟ java.lang.Enum ∟ javax. persistence .ValidationMode The validation mode to be used by the provider for the persistence unit. Since: JPA 2.0 Enum Constants AUTO If a Bean Validation provider is present in the environment, the persistence provider | |
javax.persistence.GenerationType JPA Enum GenerationType java.lang.Object ∟ java.lang.Enum ∟ javax. persistence ... Indicates that the persistence provider should pick an appropriate strategy for the particular database ... Indicates that the persistence provider must assign primary keys for the entity using a database | |
javax.persistence.PersistenceUtil JPA Interface PersistenceUtil Utility interface between the application and the persistence provider(s). The PersistenceUtil interface instance obtained from the Persistence class is used to determine the load state of an entity or entity attribute regardless of which persistence provider in | |
javax.persistence.LockModeType JPA Enum LockModeType java.lang.Object ∟ java.lang.Enum ∟ javax. persistence ... . persistence .EntityManager methods that take locks ( lock , find , or refresh ) or to the Query ... (increment) to the entity's version column. The persistence implementation is not required to support | |
javax.persistence.PersistenceUnit.unitName JPA Annotation Attribute in javax. persistence .PersistenceUnit String unitName default "" (Optional) The name of the persistence unit as defined in the persistence .xml file. If specified, the persistence unit for the entity manager factory that is accessible in JNDI must have the same name. Since: JPA 1.0 | |
javax.persistence.CascadeType JPA Enum CascadeType java.lang.Object ∟ java.lang.Enum ∟ javax. persistence .CascadeType ... cascade=ALL is equivalent to cascade={ PERSIST , MERGE, REMOVE, REFRESH, DETACH} . Since: JPA 1.0 Enum ... MERGE Cascade merge operation Since: JPA 1.0 PERSIST Cascade persist operation Since: JPA 1.0 REFRESH | |
javax.persistence.SharedCacheMode JPA Enum SharedCacheMode java.lang.Object ∟ java.lang.Enum ∟ javax. persistence .SharedCacheMode Specifies how the provider must use a second-level cache for the persistence unit. Corresponds to the value of the persistence .xml shared-cache-mode element, and returned as the result | |
EntityManager.persist(entity) - JPA Method JPA Method in javax. persistence .EntityManager void persist ( Object entity ) Make an instance managed and persistent . Parameters: entity - entity instance Throws ... may be thrown when the persist operation is invoked, or the EntityExistsException or | |
javax.persistence.Basic of mapping to a database column. The Basic annotation can be applied to a persistent property or ... for persistent fields and properties of these types. If the Basic annotation is not specified ... is a requirement on the persistence provider runtime that the value must be eagerly fetched. The LAZY | |
javax.persistence.PersistenceContext.unitName JPA Annotation Attribute in javax. persistence .PersistenceContext String unitName default "" (Optional) The name of the persistence unit as defined in the persistence .xml file. If the unitName element is specified, the persistence unit for the entity manager that is accessible in JNDI must have the same name. Since: JPA 1.0 | |
javax.persistence.RollbackException.Exception ∟ java.lang.RuntimeException ∟ javax. persistence .PersistenceException ∟ javax. persistence .RollbackException Thrown by the persistence provider when () EntityTransaction.commit() fails. See Also: javax. persistence .EntityTransaction.commit () Since: JPA 1.0 Public Constructors | |
Locking in JPA occurs a LockTimeoutException is thrown immediately. The "javax. persistence .lock.timeout" hint ... ;The hint can be set in several scopes: For the entire persistence unit - using a persistence .xml   ... ; properties.put("javax. persistence .lock.timeout", 2000); EntityManagerFactory emf =   | |
[ODB1] Chapter 2 - A Quick Tour.getPersistenceManager("hello.odb"); 14 pm.currentTransaction().begin(); 15 16 // Obtain a persistent list: 17 ... } 27 28 // Add a new string to the persistent list: 29 list.add("Hello World " + list.size()); 30 31 // Display the content of the persistent list: 32 Iterator itr = list.iterator(); 33 while (itr | |
[ODB1] Chapter 7 - JDOQL Queries . An Extent , for instance, can be used to retrieve all the instances of a specified persistent class ... three components: A candidate collection containing persistent objects (usually an Extent ) A candidate class (usually a persistent class) A filter, which is a boolean expression in a Java like syntax The query | |
javax.jdo.PersistenceManager all of the classes of interest. If the classes parameter is specified as null , events for all persistent ... ;pc) Delete the persistent instance from the data store. This method must be called in an active ... the closure of the instance persistent , the closure of the instance is not deleted from the data store | |
javax.jdo.annotations.Persistent JDO Annotation Persistent Target: ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for defining the persistence of a member. This corresponds to the xml elements ... instances in which a member is not persistent but in the non-embedded instances the member is persistent | |
javax.jdo.annotations.Persistent.persistenceModifier JDO Annotation Attribute in javax.jdo.annotations. Persistent PersistenceModifier ... which a member is not persistent but in the non-embedded instances the member is persistent . Note that it is not portable to specify a member to be not persistent in the non-embedded case and persistent in the embedded usage. Since: JDO 2.1 |