ObjectDB Database Search

51-100 of 200 results

jakarta.persistence.JoinColumn.name

Jakarta Persistence (JPA) Method in jakarta.persistence.JoinColumn String name (Optional) The name ... ): The concatenation of the following: the name of the referencing relationship property or field of the referencing entity or embeddable class; " _ "; the name of the referenced primary key column

jakarta.persistence.NamedEntityGraph.name

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedEntityGraph String name (Optional) The name used to identify the entity graph in calls to EntityManager.getEntityGraph . If no name is explicitly specified, the name defaults to the entity name of the annotated root entity. Entity graph

jakarta.persistence.PrimaryKeyJoinColumn.name

Jakarta Persistence (JPA) Method in jakarta.persistence.PrimaryKeyJoinColumn String name (Optional) The name of the primary key column of the current table. Defaults to the same name as the primary key column of the primary table of the superclass ( JOINED mapping strategy); the same name as

jakarta.persistence.CollectionTable.name

Jakarta Persistence (JPA) Method in jakarta.persistence.CollectionTable String name (Optional) The name of the collection table. If not specified, it defaults to the concatenation of the name of the containing entity and the name of the collection attribute, separated by an underscore. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.AttributeOverride.name

Jakarta Persistence (JPA) Method in jakarta.persistence.AttributeOverride String name (Required) The name of the property whose mapping is being overridden if property-based access is being used, or the name of the field if field-based access is used. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.UniqueConstraint.name

Jakarta Persistence (JPA) Method in jakarta.persistence.UniqueConstraint String name (Optional) The name of the constraint. Defaults to a provider-generated name . Default: "" Since: Jakarta Persistence (JPA) 2.0

jakarta.persistence.Table.name

Jakarta Persistence (JPA) Method in jakarta.persistence.Table String name (Optional) The name of the table. Defaults to the entity name . Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.name

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String name (optional) A unique generator name that can be referenced by one or more classes to be the generator for id values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key

jakarta.persistence.Index.name

Jakarta Persistence (JPA) Method in jakarta.persistence.Index String name (Optional) The name of the index. Defaults to a provider-generated name . Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.ForeignKey.name

Jakarta Persistence (JPA) Method in jakarta.persistence.ForeignKey String name (Optional) The name of the foreign key constraint. Defaults to a provider-generated name . Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.OrderColumn.name

Jakarta Persistence (JPA) Method in jakarta.persistence.OrderColumn String name (Optional) The name of the ordering column. Defaults to the concatenation of the name of the referencing property or field; " _ "; " ORDER ". Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.name()

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceConfiguration String name () The name of the persistence unit, which may be used by the persistence provider for logging and error reporting. Returns: the name of the persistence unit.. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.MapKeyColumn.name

Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn String name (Optional) The name of the map key column. The table in which it is found depends upon the context. If the map key ... that is the value of the map. Defaults to the concatenation of the following: the name of the referencing

jakarta.persistence.MapKey.name

Jakarta Persistence (JPA) Method in jakarta.persistence.MapKey String name (Optional) The name of the persistent field or property of the associated entity that is used as the map key. Default: If the name element is not specified, the primary key of the associated entity is used as the map key

jakarta.persistence.MapKeyJoinColumn.name

Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyJoinColumn String name (Optional) The name of the foreign key column for the map key. The table in which it is found depends ... (only applies if a single join column is used.) The concatenation of the following: the name

jakarta.persistence.JoinTable.name

Jakarta Persistence (JPA) Method in jakarta.persistence.JoinTable String name (Optional) The name of the join table. Defaults to the concatenated names of the two associated primary entity tables, separated by an underscore. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.SequenceGenerator.name

Jakarta Persistence (JPA) Method in jakarta.persistence.SequenceGenerator String name (Optional) A unique generator name that can be referenced by one or more classes to be the generator for primary key values. Defaults to the name of the entity when the annotation occurs on an entity class or

jakarta.persistence.StoredProcedureParameter.name

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureParameter String name The name of the parameter as defined by the stored procedure in the database. If a name is not specified, it is assumed that the stored procedure uses positional parameters. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CheckConstraint.name

Jakarta Persistence (JPA) Method in jakarta.persistence.CheckConstraint String name (Optional) The name of the constraint. Defaults to a provider-generated name . Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Column.name

Jakarta Persistence (JPA) Method in jakarta.persistence.Column String name (Optional) The name of the column. Defaults to the property or field name . Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.AssociationOverride.name

Jakarta Persistence (JPA) Method in jakarta.persistence.AssociationOverride String name (Required) The name of the relationship property whose mapping is being overridden if property-based access is being used, or the name of the relationship field if field-based access is used. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceProperty.name

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceProperty String name The name of the property Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceContext.name

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceContext String name (Optional) The name by which the entity manager is to be accessed in the environment referencing context; not needed when dependency injection is used. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceUnit.name

Jakarta Persistence (JPA) Method in jakarta.persistence.PersistenceUnit String name (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. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.FieldResult.name

Jakarta Persistence (JPA) Method in jakarta.persistence.FieldResult String name Name of the persistent field or property of the class. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedSubgraph.name

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedSubgraph String name (Required) The name of the subgraph as referenced from a NamedAttributeNode element. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.SecondaryTable.name

Jakarta Persistence (JPA) Method in jakarta.persistence.SecondaryTable String name (Required) The name of the table. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.DiscriminatorColumn.name

Jakarta Persistence (JPA) Method in jakarta.persistence.DiscriminatorColumn String name (Optional) The name of column to be used for the discriminator. Default: "DTYPE" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.QueryHint.name

Jakarta Persistence (JPA) Method in jakarta.persistence.QueryHint String name Name of the hint. Since: Jakarta Persistence (JPA) 1.0

JPA Connections and Transactions

the EntityManager . An EntityManager instance also functions as a factory for Query instances, which are used to execute database queries . Every JPA implementation provides classes that implement ... a persistence unit name as an argument. As an extension, ObjectDB lets you specify a database URL or path

jakarta.persistence.criteria.LocalDateField.name

Jakarta Persistence (JPA) Field in jakarta.persistence.criteria.LocalDateField name Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.LocalDateTimeField.name

Jakarta Persistence (JPA) Field in jakarta.persistence.criteria.LocalDateTimeField name Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.LocalTimeField.name

Jakarta Persistence (JPA) Field in jakarta.persistence.criteria.LocalTimeField name Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PersistenceConfiguration.name

Jakarta Persistence (JPA) Field in jakarta.persistence.PersistenceConfiguration name Since: Jakarta Persistence (JPA) 1.0

Index Definition

Querying without indexes requires sequential iteration over entities in the database. If many ... this full iteration, allowing complex queries over millions of objects to execute quickly ... ; // unique @Index ( name ="i3") int indexedField3; @Unique Integer indexedField4; // unique @Unique

jakarta.persistence.EntityManager

. Since: Jakarta Persistence (JPA) 2.1 Query createNamedQuery ( String name ) Create an instance of Query for executing a named query written in the Jakarta Persistence query language or in native SQL. Parameters: name - the name of a query defined in metadata Returns: the new query instance. Throws

Posting Sample Code

; em.getTransaction().commit();         Query query = em.createQuery("SELECT e FROM MyEntity e");         List resultList = query ... {         private String name ;       

Online Backup

You can start an online backup by executing a special query on an EntityManager ( em ) instance ... ").getSingleResult(); The backup query string is always "objectdb backup" . The backup is created in the backup ... subdirectory is created in the backup root directory. The subdirectory's name reflects the current

Retrieving JPA Entities

its persistence context, it returns the existing managed object without querying the database. Otherwise, JPA ... , getReference might return a hollow object instead of querying the database immediately. It never returns null ... a persistent field in a hollow object, such as the manager 's name in the preceding example, triggers

Comparison in JPQL and Criteria API

Most JPQL queries use at least one comparison operator in their WHERE clause. Comparison operators ... (the JDO Query Language). ObjectDB supports both forms. In addition to the different notation ... these examples, :min and :max are query parameters : x BETWEEN :min AND :max x = :min AND x ) Predicate gt1 = cb

JPA Persistence Unit

that use annotations to define generators and named queries . Otherwise, these generators and named ... -unit XML element. The required name attribute ( my-pu in the example) identifies the persistence ... persistable classes. The class elements specify the names of managed persistable classes

BIRT/ODA ObjectDB Driver

and Reporting Tools (BIRT). It adds support for ObjectDB as a data source and JPQL as a data set query language ... . Enter a data source name (for example, ObjectDB Points ) and click Next . Specify an ObjectDB ... an ObjectDB data source (for example, ObjectDB Points ). Enter a data set name (for example, Points by X

jakarta.persistence.EntityManagerFactory

entityGraph - entity graph Since: Jakarta Persistence (JPA) 2.1 void addNamedQuery ( String name , Query query ) Define the query , typed query , or stored procedure query as a named query such that future query ... binding) in effect when the named query is added is retained as part of the named query definition

JPA Metamodel and Graphs

, and their attributes to build dynamic queries and validate persistence structures. The Metamodel Access ... to retrieve entity and attribute information by class or name , similar to the reflection API in Java ... and further explanation, refer to the JPA Metamodel API section in the ObjectDB manual. Criteria query

Schema Update

... ... A element has two roles: If you specify the optional new- name attribute, the package name changes from the original name (specified by the required name attribute) to the new name . All classes in that package are moved to the new package. Additionally, regardless of whether a new- name attribute

Step 3: Define an EJB Session Bean

Bean and clicking Next . Enter GuestDao as the EJB class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new session bean (EJB ... getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class

Step 3: Define a Spring DAO Component

. The package name should be  guest . Enter  GuestDao as the class name - use  exactly that case sensitive class name . Click  Finish to create the new DAO Spring component class. Now ... getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return

Step 3: Define an EJB Session Bean

node (in the [Package Explorer] window) and selecting New Class . The package name should be guest . Enter GuestDao as the class name - use exactly that case sensitive class name . Click Finish ... ); } // Retrieves all the guests: public List getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM

Step 4: Create an ObjectDB Data Set

Queries against the database are represented in BIRT as data sets. To create the data set: Open ... Points ).  Enter a data set name (e.g. Points by X ) and click Next . The database in this tutorial contains Point entities. We will use a simple JPQL query that retrieves points with x value in

Step 3: Define a Spring DAO Component

Java Class... . Enter  GuestDao as the class name - use  exactly that case sensitive class name . The Package should be guest. Click Finish to create the new DAO Spring component class. Now ... () { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return