ObjectDB Database Search

1-50 of 200 results

Setting and Tuning of JPA Queries

The Query and TypedQuery interfaces define various methods for setting and tuning query execution ... that EntityManager , or at the individual query level, which overrides the EntityManager setting ... . JPA adds support for pessimistic locking . The setLockMode method sets a lock mode to apply

Database Management Settings

The configuration element specifies back-end (database engine) settings for the server ... specifies the database file and page size settings : The initial attribute specifies the initial size ... the database. The element specifies the recovery file settings : The enabled attribute ( "true" or

Entity Management Settings

The configuration element specifies client-side and embedded-mode settings . The default ... settings : The agent attribute (with a value of "true" or "false" ) specifies whether to load ... reflection even for enhanced classes (for troubleshooting). The element The element specifies settings

UPDATE SET Queries in JPA/JPQL

queries increase the population of all countries by 10%: UPDATE Country SET population = population * 11 / 10 UPDATE Country c SET c.population = c.population * 11 / 10 UPDATE Country AS c SET c.population ... . The SET clause defines one or more field-update expressions, which use the range variable

General Settings and Logging

The configuration element specifies ObjectDB settings that are relevant to both the server ... results that contain millions of objects. The element specifies temporary file settings : The path ... (if greater than 0 ) applies to both the server and the client. This setting has no effect in embedded

jakarta.persistence.metamodel.PluralAttribute.CollectionType.SET

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.metamodel.PluralAttribute.CollectionType SET Set -valued attribute Since: Jakarta Persistence (JPA) 1.0

Step 4: Create an ObjectDB Data Set

Queries against the database are represented in BIRT as data sets . To create the data set : Open the [New Data Set ] dialog box by right clicking the Data Sets node in the [Data Explorer] window and selecting New Data Set . Select the data source that was created in the previous step (e.g. ObjectDB

jakarta.persistence.criteria.CriteriaUpdate.set(Path,Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    Path attribute ,    Expression value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Returns: the modified update query. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaUpdate.set(String,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    String attributeName ,    Object value ) Update the value of the specified attribute. Parameters: attributeName - name of the attribute to be updated value - new value

jakarta.persistence.criteria.CriteriaUpdate.set(SingularAttribute,X)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    SingularAttribute attribute ,    X value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Returns

jakarta.persistence.criteria.CriteriaUpdate.set(SingularAttribute,Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    SingularAttribute attribute ,    Expression value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Returns

jakarta.persistence.criteria.CriteriaUpdate.set(Path,X)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    Path attribute ,    X value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Returns: the modified update query. Since: Jakarta Persistence (JPA) 1.0

Step 6: Set the Spring XML

.DispatcherServlet 2 spring *.html 30 index.jsp The settings above routes web requests with  .html suffix to the Spring dispatcher servlet. Additional spring configuration is set in another XML file ... content: The settings above guides Spring to support annotations (for components, controllers

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 ... with the following new content: The settings above guides Spring to support annotations (for components

Database Explorer

after editing the file to set the paths to objectdb.jar and the JVM. Connecting to the database Opening ... of elements. Use the First and Max fields to set the result range. Select the Disable Cache checkbox to bypass ... Edit Set Reference Set to Null to set a reference to null . Use Edit Set Reference Set to Existing

JPA Runtime Tuning & Configuration

, @Table ) or set globally at the persistence unit level during bootstrapping . This section describes dynamic options that control runtime behavior and allow you to adjust settings per session, query, or operation. Configuration scope hierarchy For non-static configuration (i.e., settings not expressed

Query Parameters in JPA

is a parameter that serves as a placeholder for a value. Before executing the query, you must set ... parameter can appear multiple times in the query string. A query can be executed only after you set values for all its parameters. The order in which you set the parameters does not matter. Ordinal

JPA Shared (L2) Entity Cache

, even across different client computers. Setting the shared cache You can configure the shared (L2) cache at three levels ... value. Persistence Unit Settings You can also enable or disable the shared cache by using a persistence unit property: ... ... You can set the jakarta.persistence.sharedCache.mode property

JPA Metamodel API

retrieve sets of types: // Get all the managed classes: // (entity classes, embeddable classes, mapped super classes) Set allManagedTypes = metamodel. getManagedTypes (); // Get all the entity classes: Set allEntityTypes = metamodel. getEntities (); // Get all the embeddable classes: Set

JPA Entity Fields

, such as Hibernate, or for changing default field settings . For example: @Entity public class ... an exception if you try to store an entity with a null value in that field. Cascade and fetch settings ... ( mappedBy ="department") Set employees; } The mappedBy element in the preceding example specifies

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 ... data source. Data sets and JPQL To create the data set : Open the New Data Set dialog box by right-clicking the Data Sets node in the Data Explorer window and selecting New Data Set . Select

JPA Optimistic and Pessimistic Locking

, which represents a shared lock. PESSIMISTIC_WRITE , which represents an exclusive lock. Setting a Pessimistic ... , a LockTimeoutException is thrown immediately. The "jakarta.persistence.lock.timeout" hint can be set to wait for a pessimistic lock for a specified number of milliseconds. The hint can be set in

JPA Primary Key

, ObjectDB automatically sets the primary key for every new entity. The key is a sequential 64-bit number ... ; // still set automatically : } The @Id annotation marks a field as a primary key field ... . The Generated Values section discusses automatic value generation in detail. Application- set primary key

jakarta.persistence.StoredProcedureQuery

may be controlled in accordance with the following: The setParameter methods are used to set the values of all required IN and INOUT parameters. It is not required to set the values of stored procedure ... back only via INOUT and OUT parameters as well as the most general case (multiple result sets and/or update

SELECT clause (JPQL / Criteria API)

in criteria queries The criteria query API provides several ways to set the SELECT clause. Single selection Setting a single-expression SELECT clause is straightforward. For example, the following ... . get ("currency")). distinct (true); The select method takes one argument of type Selection and sets

Deleting JPA Entities

that references an Address entity. Because of the CascadeType.REMOVE setting , when an Employee ... =true , specifying CascadeType.REMOVE is redundant. The difference between the two settings is how they handle a disconnected relationship, for example, when you set the address field to null or

Comparison in JPQL and Criteria API

ObjectDB supports two sets of comparison operators, as shown in the following table: Set 1: JPQL/SQL Set 2: Java/JDO Less Than Less Than or Equal To = Equal To = == Not Equal To != The main difference between the two sets is the syntax for the equal to ( = vs. == ) and not equal to ( vs

ObjectDB Object Database Features

ObjectDB provides a rich set of features. Many features are implemented as part of ObjectDB's ... is set using JPA/JDO annotations (e.g. @Entity , @Id , @Index ). Transparent activation ... .BigInteger and java.lang.BigDecimal. Collection types : Collection, List, Set , ArrayList, Vector

Database Replication and Clustering

to the slave databases, keeping them synchronized. Setting a master satabase A master ObjectDB database ... cannot. You must enable recording , but no other preparations or settings are required. Setting slave databases Setting up slave databases is straightforward. You only need to run an ObjectDB database server

Retrieving JPA Entities

method is useful when you need a reference to an entity but not its data, for example, to set ... . In a hollow object, the primary key is set , but other persistent fields remain uninitialized ... this behavior with an explicit FetchType.EAGER setting : @Entity class Employee { : @ManyToMany ( fetch

JPA Class Enhancer

(for example, the get and set methods). If you follow this practice, only user-defined persistable ... argument. Setting a Java agent enhancer in an IDE In Eclipse, JVM arguments can be set globally in ... in: Run Configurations… Arguments VM arguments In NetBeans, JVM arguments can be set in the project

WHERE clause (JPQL / Criteria API)

and an official language from a specified set of languages: SELECT c, l FROM Country c JOIN c.languages l ... the WHERE clause. WHERE in criteria queries The CriteriaQuery interface provides two where methods for setting ... it as the WHERE clause predicate, overriding any previously set predicate. For example, the following

SQL Queries Annotations

Jakarta Persistence (JPA) provides a set of annotations to define and map native SQL queries ... dialect. Groups multiple @NamedNativeQuery definitions on a single class. Result set mapping Map ... how the result set of a native query maps to entities, scalar values, or constructor results. Groups

Eclipse Public License - v 1.0

that although each Contributor grants the licenses to its Contributions set forth herein, no assurances ... the copyright license set forth in this Agreement. 3. REQUIREMENTS A Contributor may choose ... Contributor must pay those damages. 5. NO WARRANTY EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT

Chapter 6 - Configuration

. You can also define $objectdb explicitly by setting the objectdb.home system property: System.setProperty("objectdb.home", "/odb"); // new $objectdb As with any other system property it can also be set as ... setting the "objectdb.conf" system property: System.setProperty("objectdb.conf", "/my/objectdb.conf

JPA Criteria API Queries

a TypedQuery instance, query execution and settings are similar, regardless of how the query ... the query parameter. The where method sets the WHERE clause. As shown, the CriteriaQuery interface supports method chaining. For details on setting clauses and building expressions, see the links in

GROUP BY and HAVING clauses

methods for setting the GROUP BY and HAVING clauses. For example, the following JPQL query: SELECT c ... version of groupBy accepts a list of expressions. Setting a HAVING clause is similar to setting ... , which are combined using an AND conjunction. When the groupBy or having method is called, any previously set values are discarded.

SSL Configuration

The configuration element specifies Secure Sockets Layer (SSL) settings for secure client-server ... of the ssl element, which can be set to true or false , specifies whether SSL is used. As shown in ... keystore can be different from the server keystore. Setting the Configuration To use SSL, the enabled

Storing JPA Entities

setting up automatic cascading persist operations. Cascading persist Marking a reference field ... . Because of the CascadeType.PERSIST setting , when an Employee instance is persisted, the operation is automatically ... . You can do this either by setting the ObjectDB configuration or, in a JPA-portable way, by specifying the cascade-persist

JPA Persistable Types

can be set explicitly by using the name attribute of the @Entity annotation: @Entity ( name ="MyName ... packages share the same class name, explicitly setting the entity name is required to avoid conflicts ... java.util.Collection , java.util.List , java.util. Set , or java.util.Map ), and this is also a good

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and JPA criteria queries combine simple Boolean expressions to form complex expressions. Logical operators ObjectDB supports two sets of logical operators, as shown in the following table: Set 1: JPQL / SQL Set 2: Java / JDO AND && OR || NOT ! JPQL uses SQL notation

Privacy Policy

of our Service. Unless you have adjusted Your browser setting so that it will refuse Cookies, our Service ... Cookies for the purposes set out below: Essential Cookies These are Session Cookies,  ... is necessary for the purposes set out in this Privacy Policy. We will retain and use Your Personal Data

JPA Components Annotations

the class as a mapped superclass. Its persistent attributes (fields and properties) and their settings ... ). Use these annotations to configure the access type: Sets the access type (FIELD or PROPERTY ... caching: Specifies whether the entity is eligible for the second-level cache. Set to true or false

JPA Persistence Unit

, embeddable classes, and mapped superclasses) and their related settings . Defining a persistence unit ... classes using .managedClass(). Set Properties:  Pass database credentials and provider-specific settings . Avoid XML:  Completely bypass the need for a META-INF/persistence.xml 

Server User List

and specifies their settings (username, password, permissions, and quota). The default configuration file ... whether the user is a superuser. A superuser can manage server settings using the ObjectDB Explorer ... inherit the settings from this master definition. However, the master user itself cannot be used

jakarta.persistence.TypedQuery

query. PersistenceException - if the query execution exceeds the query timeout value set ... execution exceeds the query timeout value set and only the statement is rolled back. Since: Jakarta ... result the query object was set to retrieve. Returns 0 if setFirstResult was not applied to the query

Spring MVC JPA Tutorial - IntelliJ Project

the Server: Select  File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat ... +F10 ). If the browser fails to open check the settings at  File Settings Web Browsers .

Step 6: Design a BIRT Report Table

) layout. Set the column number to 2 , number of details to 1 , select the data set (e.g. Points by X ... the data set in the [Data Explorer] window (under the data set node) and dropping them on the second

JPA Web App Tutorial - IntelliJ Project

: Select File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat ... at the toolbar and click the green run icon (or Shift+F10 ). If the browser fails to open check the settings at File Settings Web Browsers .

Java EE 6 JPA Tutorial - IntelliJ Project

directory and click  OK . Define the Server: Select  File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat has to be downloaded separately). Define Run Configuration ... and click the green run icon (or  Shift+F10 ). If the browser fails to open check the settings at  File Settings Web Browsers .