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

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

Pessimistic Lock Timeouts setting

.objectdb.o._LockTimeoutException: Write lock cannot be granted for a.b.c.d.EE#150. irrespective if I set ... setting a shared lock in the EJB could get around this, but this would be global and impact all threads ... on stale updates. Willks William Support of pessimistic lock timeout  setting ( javax.persistence

DB Doctor sets type to "unknown" for new fields

to the schema as expected, however their type is set to unknown - we were expecting Boolean. The attached ... ) is set to unknown. Both are defined as Boolean in Java code. As a result, update operations ... like the following fail to change the value from null to false: UPDATE RecordingMetaData AS r SET r

Understanding Database max-threads objectdb.conf Settings Option

(attached to forum thread mentioned above), I set  Database max-threads.  In the documentation, it was not completely clear to me if this setting controlled how many internal threads ObjectDB uses, or if ObjectDB is doing some sort of queue/locking whose depth is determined by this setting

"Failed to serialize instance" of Set problem

, mappedBy="parent") private Set abstractContainers = com.google.common.collect. Sets ... of com.google.common.collect. Sets $SetFromMap - field xxx.AbstractContainer.abstractContainers at com ... Vladimir Tsichevski Maybe the set contains objects that cannot be serialized. Check the full stack trace

ManyToMany Set is null

")     private Set contracts = new HashSet (); ---------- @Entity public class Contract ... = "contracts")     private Set persons = new HashSet (); [...] itsme Martin Petzold

Is there a way to set EAGER fetch on all "ToMany" collection relationships

Given that the default seems to be FetchType.LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in every relationship. webel Dr Darren Kelly No. There is no such configuration option, since having EAGER

Set timeout for BatchQueryItr

( unknown source ) xirt Sylvain You can set a query execution timeout as a query hint . The many

UPDATE query to set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save

Unable to update a OneToMany Set

Unable to update a OneToMany 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

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

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

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

JPA Metamodel Attributes

: COLLECTION , SET , LIST , or MAP . Represents an attribute typed as a generic java.util.Collection . Represents an attribute typed as a java.util. Set , implying unique elements without a specific order

jakarta.persistence.EntityManager

. A persistence context is a set of entity instances in which for any given persistent entity identity ... flush . The timing of the flush process depends on the flush mode , which may be set explicitly by ... must also be flushed before execution of any query whose result set would be affected by unflushed modifications

JPA Criteria Query Expressions

expression handling by using a minimal set of reusable interfaces, so many different types of expressions

Database Transaction Replayer

by setting the path attribute in the configuration . The recording directory contains two types

Server Configuration

The configuration element specifies settings for running an ObjectDB Server . The server is also affected by other elements in the configuration file, such as the and elements. The default configuration file contains the following element: The element The element specifies how clients can connect

FROM clause (JPQL / Criteria API)

, SET , SIZE, SOME, SQRT, SUBSTRING, SUM, THEN,TRAILING, TRIM, TRUE, TYPE, UNKNOWN, UPDATE, UPPER, VALUE

JPA Attributes Annotations

using the following annotations: Sets a field or property of a basic attribute (e.g., primitives

com.objectdb.o._PersistenceException: Failed to locate set method for field property using reflection

. set (platformConnector); } ... } I get an exception thrown  when trying to create an entity ... ._PersistenceException: Failed to locate set method for field property domain.PlatformTicker.platformConnector using ... ObjectDB's. However the error message Failed to locate set method for field property... is misleading

Enum fields are set to null and embeddable enum class does not show in explorer

I switched to version 2.8.2 and now it seems that my enum types are not recognized and the field in the related objects is set to null. This is highly critical because it will cause data loss! The enum type is also not listed in the explorer. I am talking about an enum class, which implements

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

jakarta.persistence.ManyToMany

: @ManyToMany @JoinTable(name = "CUST_PHONES") public Set getPhones() { return phones; } // In PhoneNumber class: @ManyToMany(mappedBy = "phones") public Set getCustomers() { return customers; } Example 2: // In Customer class: @ManyToMany(targetEntity = com.acme.PhoneNumber.class) public Set

jakarta.persistence.FlushModeType

within a transaction, if AUTO is set on the Query or TypedQuery object, or if the flush mode setting for the persistence context is AUTO (the default) and a flush mode setting has not been specified for the Query or ... , if COMMIT is set , the effect of updates made to entities in the persistence context on queries

jakarta.persistence.EntityManagerFactory

of EntityManager . A persistence unit defines the set of all classes that are related or grouped by ... . This includes configuration information such as max results, hints, flush mode, lock mode, result set ... , information that can be set by means of the query APIs can be overridden. Information

jakarta.persistence.StoredProcedureQuery.getSingleResult()

getSingleResult() Retrieve a single result from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, is retrieved in the order the REF_CURSOR parameter was registered with the query. Returns: the result or null if the next item is not a result set . Throws

jakarta.persistence.StoredProcedureQuery.getSingleResultOrNull()

getSingleResultOrNull() Retrieve a single result from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, is retrieved in the order the REF_CURSOR parameter was registered with the query. Returns: the result or null if the next item is not a result set or

jakarta.persistence.StoredProcedureQuery.getResultList()

() Retrieve the list of results from the next result set . The provider will call execute on the query if needed. A REF_CURSOR result set , if any, is retrieved in the order the REF_CURSOR parameter was registered with the query. Returns: a list of the results or null is the next item is not a result set

jakarta.persistence.metamodel.ManagedType.getPluralAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getPluralAttributes() Return all multi-valued attributes (Collection-, Set -, List-, and Map-valued attributes) of the managed type. Returns empty set if the managed type has no multi-valued attributes. Returns

jakarta.persistence.metamodel.ManagedType.getDeclaredPluralAttributes()

Jakarta Persistence (JPA) Method in jakarta.persistence.metamodel.ManagedType Set getDeclaredPluralAttributes() Return all multi-valued attributes (Collection-, Set -, List-, and Map-valued attributes) declared by the managed type. Returns empty set if the managed type has no declared multivalued

jakarta.persistence.criteria.AbstractQuery.getRoots()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery Set getRoots ... itself, including any subquery roots defined as a result of correlation. Returns an empty set if no roots have been defined. Modifications to the set do not affect the query. Returns: the set of query roots. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.execute()

() Return true if the first result corresponds to a result set , and false if it is an update count or ... result corresponds to result set . Throws: PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query

jakarta.persistence.StoredProcedureQuery.hasMoreResults()

hasMoreResults() Return true if the next result corresponds to a result set , and false if it is an update count ... if next result corresponds to result set . Throws: PersistenceException - if the query execution exceeds the query timeout value set and the transaction is rolled back. QueryTimeoutException - if the query

jakarta.persistence.EntityTransaction

. Since: Jakarta Persistence (JPA) 1.0 void setTimeout ( Integer timeout ) Set the transaction timeout ... that the database server should set the timeout Since: Jakarta Persistence (JPA) 3.2

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 .

jakarta.persistence.criteria.CommonAbstractCriteria.getParameters()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CommonAbstractCriteria Set getParameters() Return the parameters of the query. Returns empty set if there are no parameters. Modifications to the set do not affect the query. Returns: the query parameters. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Subquery.getCorrelatedJoins()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Subquery Set getCorrelatedJoins() Return the correlated joins of the subquery. Returns empty set if the subquery has no correlated joins. Modifications to the set do not affect the query. Returns: the correlated joins of the subquery. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TypedQuery.getResultStream()

and only the statement is rolled back. PersistenceException - if the query execution exceeds the query timeout value set ... other than NONE has been set and there is no transaction or the persistence context has not been joined to the transaction. QueryTimeoutException - if the query execution exceeds the query timeout value set

Step 5: Add a JSP Page

that have already signed (which are retrieved from the request's guestDao attribute that is set by the controller in the previous step). The next step (and the last in this tutorial) is setting the Spring XML configuration .

Step 2: Entity Class and Persistence Unit

+ ")"; } } The Guest entity class will represents guests in the database. We also need to configure JPA by setting

Step 1: Create a Maven Web Project

; copy and paste to replace its content with the following settings : 4.0.0 com.objectdb.tutorial

Step 1: Create a Java Project

qualified class name is set (you may use copy & paste). Click the Finish button to create

Step 1: Create a Maven Web Project

file and use copy and paste to replace its content with the following settings : 4.0.0 com.objectdb