ObjectDB Database Search

51-100 of 200 results

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.SqlResultSetMapping.name

Jakarta Persistence (JPA) Method in jakarta.persistence.SqlResultSetMapping String name The name given to the result set mapping, and used to refer to it in the methods of the Query and StoredProcedureQuery APIs. 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

jakarta.persistence.ColumnResult.name

Jakarta Persistence (JPA) Method in jakarta.persistence.ColumnResult String name (Required) The name of a column in the SELECT clause of a SQL query Since: Jakarta Persistence (JPA) 1.0

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

Strings in JPQL and Criteria Queries

: c. name LIKE '_r%' is TRUE for 'Brazil' and FALSE for 'Denmark' . c. name LIKE '%' is always TRUE (for any c. name value). c. name NOT LIKE '%' is always FALSE (for any c. name value). To match a literal ... to 'aly' . SUBSTRING('Italy', 3, 2 ) is evaluated to 'al' . Positions are one-based (as in SQL), not

Literals in JPQL and Criteria Queries

, -127L, 0L, 07777L float : 3.14F, 0f, 1e2f, - 2 .f, 5.04e+17f double : 3.14, 0d, 1e2D, - 2 ., 5.04e+17 ... syntax for enum values, but you must specify the fully qualified name of the enum type. For example ... literal is the name of the entity class (for example, Country ). This is equivalent to Country.class

jakarta.persistence.metamodel.EntityType

An instance of EntityType represents an entity type. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Attribute getAttribute ( String name ) Return the attribute of the managed type that corresponds to the specified name . Inherited from ManagedType Parameters: name - the name

jakarta.persistence.metamodel.IdentifiableType

Persistence (JPA) 2 .0 Public Instance Methods Attribute getAttribute ( String name ) Return the attribute of the managed type that corresponds to the specified name . Inherited from ManagedType Parameters: name - the name of the represented attribute Returns: attribute with given name . Throws

jakarta.persistence.metamodel.ManagedType

, mapped superclass, and embeddable types. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Attribute getAttribute ( String name ) Return the attribute of the managed type that corresponds to the specified name . Parameters: name - the name of the represented attribute Returns: attribute

jakarta.persistence.metamodel.EmbeddableType

of EmbeddableType represents an embeddable type. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Attribute getAttribute ( String name ) Return the attribute of the managed type that corresponds to the specified name . Inherited from ManagedType Parameters: name - the name of the represented attribute

jakarta.persistence.metamodel.MappedSuperclassType

Persistence (JPA) 2 .0 Public Instance Methods Attribute getAttribute ( String name ) Return the attribute of the managed type that corresponds to the specified name . Inherited from ManagedType Parameters: name - the name of the represented attribute Returns: attribute with given name . Throws

JPA Class Enhancer

line: ObjectDB Enhancer [version 2 .9.4] Copyright (c) 2025, ObjectDB Software. All rights reserved. Usage: java com.objectdb.Enhancer [ | | ] ... - name of a class (without .class suffix) in ... classes -pu : persistence unit name -s : include sub directories in search -d : output path for enhanced

SELECT clause (JPQL / Criteria API)

, the following query returns country names as String instances, rather than Country objects: SELECT c. name FROM Country AS c Using path expressions , such as c. name , in query results is called ... c. name FROM Country AS c", String.class); List results = query. getResultList (); You can use

Query Parameters in JPA

because it eliminates repeated query compilations. Named Parameters (: name ) The following method retrieves a Country object from the database by its name : public Country getCountryByName( EntityManager em, String name ) { TypedQuery query = em. createQuery ( "SELECT c FROM Country c WHERE c. name = : name

JPA Persistence Unit

(PersistenceConfiguration) Starting with  JPA 3. 2 , it is no longer mandatory to use a  persistence.xml   ... the persistence-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

jakarta.persistence.EntityManager

graph. Since: Jakarta Persistence (JPA) 2 .1 Query createNamedQuery ( String name ) Create an instance ... - if no query has been defined with the given name . Since: Jakarta Persistence (JPA) 2 .1 Query ... of the given name does not exist (or if query execution will fail). Since: Jakarta Persistence (JPA) 2 .1

Comparison in JPQL and Criteria API

/SQL Set 2 : Java/JDO Less Than Less Than or Equal To = Equal To = == Not Equal To != The main ... . greaterThan ( name , nameParam); Predicate gt2 = cb. greaterThan ( name , "India"); Predicate gt3 = cb ... (=) Predicate ge1 = cb. greaterThanOrEqualTo ( name , nameParam); Predicate ge2 = cb. greaterThanOrEqualTo ( name

jakarta.persistence.StoredProcedureQuery

. Since: Jakarta Persistence (JPA) 2 .0 Parameter getParameter ( String name , Class type ... . IllegalArgumentException - if the parameter of the specified name does not exist. Since: Jakarta Persistence (JPA) 2 ... Since: Jakarta Persistence (JPA) 2 .1 Public Instance Methods boolean execute () Return true if the first

jakarta.persistence.Query

of results. Since: Jakarta Persistence (JPA) 2 .0 Parameter getParameter ( String name ) Get the parameter ... Persistence (JPA) 2 .0 Parameter getParameter ( String name , Class type ) Get the parameter object ... - if the parameter of the specified name does not exist. Since: Jakarta Persistence (JPA) 2 .0 Object

jakarta.persistence.TypedQuery

of the specified name does not exist. Since: Jakarta Persistence (JPA) 2 .0 Parameter getParameter ... name does not exist or is not assignable to the type. Since: Jakarta Persistence (JPA) 2 .0 Parameter ... . Since: Jakarta Persistence (JPA) 2 .0 Object getParameterValue ( String name ) Return the input value

Database Management Settings

. The page attribute specifies the size of a page in a database file. The default value of 2 KB ... when a database is opened and deletes it when the database is closed. The recovery file name is based on the database file name , with a $ character appended. Every transaction commit is written first

JPA Query API

, which was the only query interface in JPA 1, and the TypedQuery interface, which was introduced in JPA 2 ... because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API, and named queries In ... named queries , by using the @NamedQuery and @NamedQueries annotations. In JPA, it is a best

FROM clause (JPQL / Criteria API)

By default, the name of an entity class in a JPQL query is the unqualified name of the class (for example, Country with no package name ). The default name can be overridden by specifying another name explicitly in the name element of the @Entity annotation. Multiple range variables are allowed

jakarta.persistence.criteria.PluralJoin

query construction. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection alias ( String name ) Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item. Inherited from Selection Parameters: name - alias

jakarta.persistence.criteria.MapJoin

collection that has been specified as a java.util.Map . Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection alias ( String name ) Assigns an alias to the selection item ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.SetJoin

that has been specified as a java.util.Set . Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection alias ( String name ) Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item. Inherited from Selection Parameters: name - alias

jakarta.persistence.criteria.CollectionJoin

that has been specified as a java.util.Collection . Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection alias ( String name ) Assigns an alias to the selection item. Once assigned ... Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression

jakarta.persistence.criteria.ListJoin

that has been specified as a java.util.List . Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection alias ( String name ) Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item. Inherited from Selection Parameters: name

jakarta.persistence.criteria.Join

Persistence (JPA) 2 .0 The FROM clause (JPQL / Criteria API) article explains how to use Join . Public Instance Methods Selection alias ( String name ) Assigns an alias to the selection item. Once assigned ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression

jakarta.persistence.criteria.Root

Persistence (JPA) 2 .0 The FROM clause (JPQL / Criteria API) article explains how to use Root . Public Instance Methods Selection alias ( String name ) Assigns an alias to the selection item ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.From

to the type. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection alias ( String name ... the same selection item. Inherited from Selection Parameters: name - alias Returns: selection item ... ) 3. 2 Predicate equalTo ( Expression value ) Create a predicate to test whether the expression

ORDER BY clause (JPQL / Criteria API)

expressions The following query returns the names of countries with a population of at least one million, ordered by country name : SELECT c. name FROM Country c WHERE c.population 1000000 ORDER BY c. name ... because the ORDER BY expression, c.population , is not part of the SELECT clause: SELECT c. name FROM Country c

jakarta.persistence.EntityManagerFactory

factory has been closed. Since: Jakarta Persistence (JPA) 2 .0 String getName () The name ... graphs Returns: a map keyed by graph name . Since: Jakarta Persistence (JPA) 3. 2 Map getNamedQueries ... entityGraph ) Add a named copy of the given EntityGraph to this EntityManagerFactory . If an entity

jakarta.persistence.EntityGraph

Graph Parameters: attributeName - name of the attribute Since: Jakarta Persistence (JPA) 3. 2 void ... Persistence (JPA) 2 .1 Public Instance Methods AttributeNode addAttributeNode ( String attributeName ) Get an existing attribute node for the attribute with the given name , or add a new attribute node

ObjectDB Object Database Features

Objects (JDO) Complete JDO 2 support (passed the JDO 2 TCK). Support for JDO 3 new features is in ... API . Static definition ( named queries ) in annotations (@NamedQuery) and XML. Query parameters

jakarta.persistence.Graph

to EntityGraph and Subgraph . See Also: EntityGraph Subgraph Since: Jakarta Persistence (JPA) 3. 2 Public ... for the attribute with the given name , or add a new attribute node if there is no existing node. Parameters: attributeName - name of the attribute Returns: the attribute node. Throws

jakarta.persistence.Subgraph

within an EntityGraph . See Also: EntityGraph AttributeNode NamedSubgraph Since: Jakarta Persistence (JPA) 2 .1 Public ... node for the attribute with the given name , or add a new attribute node if there is no existing node. Inherited from Graph Parameters: attributeName - name of the attribute Returns: the attribute node

Step 1: Create a Maven Web Project

Name (e.g. Guestbook ) and select Java EE 5. Enter Maven Group Id (e.g. com.objectdb.tutorial.spring ... ;  com.objectdb    objectdb    2 .8.1        org.eclipse.persistence      javax.persistence      2 .1.0      

Step 6: Set the Spring XML

.DispatcherServlet 2 spring *.html 30 index.jsp The settings above routes web requests with  .html suffix ... (whose name is derived from the name of the Spring dispatcher servlet in  web.xml ). To generate ...   spring-servlet as the File Name . Click  Finish to create the XML file. Now use 

Step 6: Set the Spring XML

: spring org.springframework.web.servlet.DispatcherServlet 2 spring *.html 30 index.jsp The settings ... configuration is set in another XML file (whose name is derived from the name of the Spring dispatcher ... -servlet as the File Name . The Folder should be src\main\webapp\WEB-INF. Click Next and then Finish

[ODB1] Chapter 8 - ObjectDB Server

mode are discussed in Section 1. 2 . Because the JDO API and the format of the database file ... configuration file. ObjectDB is shipped with a default server configuration file named default.xml ... com.objectdb.Server -conf config.xml start If you name your configuration file server.xml

[ODB1] Chapter 7 - JDOQL Queries

) void setCandidates(Extent pcs) void setFilter(String filter) 7. 2   Query Filter Syntax ... class contains a field with the name age and a type comparable to int . This section describes ... , 0, 0xFFFF, 07777 , ... long 2003L, -127L, 0L, 0xFFFFL, 07777L , ... float 3.14F, 0f, 1e2f, - 2 .f, 5

[ODB1] Chapter 5 - JDO Connections

a Properties instance. Each property consists of two strings, a name that identifies the property ... PersistenceManagerFactory instance. When using ObjectDB, the value should always be "com.objectdb.jdo.PMF" (the name ... .option.ConnectionURL=local.odb Assuming the name of the file is jdo.properties , it can be loaded by

[ODB1] Chapter 3 - Persistent Classes

). 3. 2   Persistent Fields and Types Storing a persistent object in the database does not ... class for this purpose (images can also be stored as external files, storing only the file names or ... of any of the persistent types defined above in the database (as demonstrated in section 2 .1

[ODB1] Chapter 9 - ObjectDB Explorer

version to the same installation directory. 9. 2   Browsing the Database The ability ... a new root use the "Create Root" command, and then in the "Create a New Root" dialog box set the name ... the object from the database, only its name ) using commands in these menus. Saving Changes The Explorer