ObjectDB Database Search

1-50 of 200 results

jakarta.persistence.criteria.CriteriaBuilder.or(Predicate...)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Predicate or ... . A disjunction of zero predicates is false. Parameters: restrictions - zero or more restriction predicates Returns: or predicate. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaBuilder.or(List)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Predicate or ... . A disjunction of zero predicates is false. Parameters: restrictions - a list of zero or more restriction predicates Returns: or predicate. Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.criteria.CriteriaBuilder.or(Expression,Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Predicate or (    Expression x ,    Expression y ) Create a disjunction of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Returns: or predicate. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.Predicate.BooleanOperator.OR

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.criteria.Predicate.BooleanOperator OR Since: Jakarta Persistence (JPA) 1.0

setting activation code in persistence.xml or env file or system properties

Wondering if it's possible to add the activation code either: - in persistence.xml - or in a .env file - or system properties dmoshal David Moshal These options are not supported. However, you can embed the configuration file with the activation code as a resource, e.g. by replacing the objectdb

Programatic configuration or configuration file loaded from classpath or file

classloader? If one or both are possible, could you please give some examples? Thanks a lot! itsme Martin

Privacy Policy

shall have the same meaning regardless of whether they appear in singular or in plural. Definitions ... our Service or parts of our Service. Company  (referred to as either "the Company", "We", "Us" or "Our" in this Agreement) refers to ObjectDB Software Ltd, 109 Vernon House Friar Lane Unit 632

Apache License, Version 2.0, January 2004

of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright ... and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause

Which API should I use - JPA or JDO?

You can use ObjectDB with either the Java Persistence API (JPA) or the Java Data Objects (JDO) API. Both share similar architecture, design and abilities. When to prefer JPA JPA is more commonly used. Therefore, it might be the first choice for most new applications. You can use JPA as

Eclipse Public License - v 1.0

"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE ... Contributor: i) changes to the Program, and ii) additions to the Program; where such changes and/ or ... . A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or

ObjectDB Website - Terms and Conditions of Use

from using or accessing this site. The materials contained in this web site are protected by ... one copy of the materials (information or software) on ObjectDB Software's web site for personal, non ... , and under this license you may not: modify or copy the materials; use the materials for any commercial

ObjectDB License Agreement [ver. 2.0.4]

Please read carefully this software license agreement. By downloading, installing or using ... and conditions - do not download, install or use the software. This agreement is between ObjectDB ... prevail over any conflicting or additional terms of any oral or written quote, acknowledgement

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 ... ): Defaults passed in a property map to the factory builder or defined in persistence.xml . EntityManager

Logical Operators in JPQL and Criteria API

of logical operators, as shown in the following table: Set 1 - JPQL / SQL Set 2 - Java / JDO AND && OR ... is NULL and the other operand is either TRUE or NULL , the result is NULL (unknown). ObjectDB supports the Java/JDO && operator as a synonym of AND as part of its JDO support. Binary OR (||) Operator

JPA Persistable Types

types and Serializable types (user or system defined). Note : Only instances of entity classes ... : should be a top-level class (i.e. not a nested / inner class). should have a public or protected no-arg constructor. cannot be final and cannot have final methods or final instance variables. ObjectDB

JPA Attributes Annotations

using the following annotations: Sets a field or property of a basic attribute (e.g., primitives ... (Lazy/Eager) and nullability. Specifies a persistent field or property as an embedded attribute. The embedded state is stored in the same table as the owning entity. Specifies a collection field or

Database Explorer

explorer.jar or by running explorer.exe (on Windows) or explorer.sh (on Unix/Linux, after editing ... ] tabbed window or select an element for viewing (an entity class in the [Schema] tabbed window, a bookmark in the [Database] tabbed window or an object in a currently open Table or Tree window

Eclipse Distribution License - v 1.0

. Redistribution and use in source and binary forms, with or without modification, are permitted provided ... the documentation and/ or other materials provided with the distribution. Neither the name of the Eclipse Foundation, Inc. nor the names of its contributors may be used to endorse or promote products derived from

Entity Management Settings

The element specifies enhancement related settings: The agent attribute (whose value is "true" or "false ... for every non enhanced class. " ignore" - reflection is used for non enhanced classes - with no error or ... entities are always held by strong references in the persistence context (until commit or flush

JPA ORM Mapping Annotations

these annotations: Specifies the mapped column for a persistent property or field. Specifies that a persistent property or field should be persisted as a large object (BLOB or CLOB). Specifies ... class hierarchy. An enumeration defining the strategies: SINGLE_TABLE , JOINED , or TABLE_PER_CLASS

JPA Entity Fields

either the Java transient modifier (which also affects serialization) or the JPA @Transient annotation ... the @Transient annotation). Storing an entity object in the database does not store methods or code ... the database every persistent field must contain either null or a value of one of the supported

Schema Update

a complementary operation to renaming or moving these elements in the IDE during source code ... when persistable classes are renamed or moved to another package. Running the application with persistable classes that have been renamed or moved in the IDE, with no matching schema configuration

Database Connection using JPA

an argument a name of a persistence unit . As an extension, ObjectDB enables specifying a database URL ( or ... :   or ends with .odb or .objectdb is considered by ObjectDB to be a database URL rather than as ... ), an absolute path or  a relative path of a local database file has to be specified (e.g. "my.odb

jakarta.persistence.EntityManager

identity that is not ( or no longer) associated with any active persistence context. A removed ... to perform operations that affect the state of the persistence context, or that modify the lifecycle state ... instance by mutating the entity directly, or it may request that the state of a detached instance

JPA Lifecycle Events

). @PostPersist - after storing a new entity in the database (during commit or flush ). @PostLoad ... the EntityManager . @PostUpdate - after updating an entity in the database (during commit or flush ... - after deleting an entity from the database (during commit or flush ). An entity class may include callback

Database Management Settings

or copying a database file that has not been closed properly without its recovery file may corrupt ... is "true" or "false" ) specifies if a recovery file is used. The sync attribute (whose value is "true" or "false" ) specifies if physical writing is required before commit returns. sync=false

JPA Core Types

environments that do not use JTA. Use this interface to explicitly begin , commit , or roll ... the load state of an entity or attribute without triggering lazy loading. An extended utility interface ... schema management, such as creating, dropping, or truncating schemas. Use this interface

Database Doctor

of the Operating System, Java or ObjectDB). Copying a database file while it is open and in use. Network or I/O failure when copying, moving or transferring a database file. Transferring a database file over FTP in ASCII mode (BINARY mode should be used). Deleting an ObjectDB database recovery file or

Database Schema Evolution

with default values ( 0 , false or null ). Fields in the old schema that do not have matching fields in ... name and either the same type or a convertible type, as explained below. A matching field ... with a default value ( 0 , false or null ). The following type conversions are supported: From any numeric

Index Definition

that prevents duplicate values in the indexed field. A PersistenceException is thrown on commit ( or flush ... ). @Index represents either an ordinary index with no unique constraint or a unique index if unique="true ... every indexed field must contain either null or a value of one of the following persistable types

JPA Metamodel API

method or by the EntityManager 's getMetamodel method (both methods are equivalent). For example ... , embeddable or mapped super classes): ManagedType type1 = metamodel. managedType (MyClass.class ... an ID class when using multiple ID fields or properties. Finally, the EntityType interface adds

Locking in JPA

that has to be updated or deleted is checked. An exception is thrown if it is found out that an update ... or deleted, and compares the version number of that object in the database to the version number ... (which is required by some ORM JPA providers) is defined in the entity class or not. Pessimistic Locking The main

JPA Listeners & Callbacks Annotations

during specific entity state transitions. These annotations allow you to define methods within an entity or ... can be further configured with annotations that specify lifecycle event listeners. Specifies one or more callback listener classes for the entity or mapped superclass. These listeners respond to lifecycle events

Storing JPA Entity Objects

or implicitly as a result of a cascade operation. Explicit Persist The following code stores ... managed by the EntityManager ) or by commit . Referenced Embedded Objects The following code stores ... object or alternatively by setting automatic cascading persist. Cascading Persist Marking a reference

Retrieving JPA Entity Objects

with data that is retrieved from the database ( or from the L2 cache - if enabled). The new entity object ... FetchType . LAZY in either @OneToOne or @ManyToOne annotations (currently ObjectDB does not distinguish ... ) private Collection projects; : } Specifying FetchType . EAGER explicitly in @OneToMany or @ManyToMany

JPA Class Enhancer

suffix) in the CLASSPATH - path to class or jar file(s), *? wildcards supported include: -cp   ... and jar files for enhancement explicitly or by using wildcards: $ java com.objectdb.Enhancer test/*.class ... to the enhance method as a single string delimited by commas or spaces. In addition, a class loader

JPA Criteria Query Selection and Results

and ordering, mirroring the SELECT and ORDER BY clauses in JPQL or SQL. These interfaces allow you to specify ... , such as an entity, an attribute, or a computed expression. Because Selection is a superinterface ... ;the result as an array of objects or as individual values by index, alias string or

Paths and Types in JPQL and Criteria API

with an instance of a user defined class (represented by a variable, parameter or prefix path ... class must contain a persistent field ( or property) with a matching name. The path expression ... value. In Java, a NullPointerException is thrown on any attempt to access a field or a method via a null

GROUP BY and HAVING clauses

clause. When a GROUP BY clause exists in a JPQL query, database objects ( or tuples of database objects ... (count, sum, avg, max, min) that are carried out on all the objects ( or the object tuples) in ... /WHERE objects ( or object tuples) are considered as one group. For example, the following query

Setting and Tuning of JPA Queries

that may affect query execution if invoked before a query is run using getResultList or getSingleResult ... , either at the  EntityManager level as a default for all the queries in that EntityManager or ... language) or "ODBQL" (ObjectDB query language). The default is ODBQL, which is a union of JPQL

Strings in JPQL and Criteria Queries

the following wildcard characters: The percent character ( % ) - which matches zero or more of any character ... (usually a parameter or literal). For example: c.name LIKE '_r%' is TRUE for 'Brazil' and FALSE ... (for any c.name value). To match an actual underscore or percent character it has to be preceded by

JPA Queries

Jakarta Persistence provides powerful APIs for executing database queries using JPQL strings or ... to ObjectDB). Interface for declaring and handling named or positional query parameters. Use ... ("SELECT ... FROM ... WHERE ..."); or Criteria query objects, as described below. For detailed usage

ObjectDB License

2.x updates. A site license covers installation of ObjectDB on all computers of one company or ... and laptops of employees in that workplace. Servers that are leased or rented from third party web hosting and/ or cloud hosting companies (including shared web hosting and VPS), if the hosted

JPA Container Injection Annotations

the container to inject EntityManager or EntityManagerFactory proxies directly into application components ... of the persistence context: TRANSACTION (default) or EXTENDED (spanning multiple transactions ... a dependency on an EntityManagerFactory , useful for creating EntityManagers manually or accessing factory

Obtaining a JPA Database Connection

persistence unit in an XML file or you can simply provide the file path of the ObjectDB database ... an argument, but when using ObjectDB, any valid database file path (absolute or relative) is also accepted. Any string that starts with the prefix objectdb: or ends with .odb or .objectdb is considered

JPA Components Annotations

can access persistent state directly (field access) or through getters and setters (property access). Use these annotations to configure the access type: Sets the access type (FIELD or PROPERTY) for an entity, mapped superclass, or embeddable class. Enum used with @Access to choose between FIELD

JPA Exceptions

PersistenceException to handle runtime failures. This structure enables applications to catch specific errors or ... without an active transaction. Thrown when the transaction is marked for rollback only or the commit fails ... . This commonly occurs during EntityManager.refresh or EntityManager.getReference calls. Concurrency

jakarta.persistence.StoredProcedureQuery

on an unexecuted stored procedure query before processing getResultList or getSingleResult . When executeUpdate ... back only via INOUT and OUT parameters as well as the most general case (multiple result sets and/ or update ... if the first result is a result set, and false if it is an update count or there are no results

JPA Criteria Query Expressions

, representing any typed value, calculation, or path within the query. Extends Selection   ... WHERE and HAVING clauses. An enum defining the logical operators ( AND , OR ) used to combine multiple predicates. A navigation path to an attribute value or a referenced entity. A type-safe representation

Database Replication and Clustering

ObjectDB supports master-slave replication (cluster). When replication ( or clustering) is used ... has to be enabled, but no other preparations or settings are required. Setting Slave Databases Setting slave ... using one or more elements) and also databases that are not part of any cluster. The replicated