ObjectDB Database Search

1-50 of 200 results

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

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 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

JPA Persistable Types

types and serializable types (user-defined or system-defined). Note : Only instances of entity classes ... : Must be a top-level class (that is, not a nested or inner class). Must have a public or protected no-argument constructor. Must not be final and must not have final methods or final instance variables

Logical Operators in JPQL and Criteria API

the following table: Set 1: JPQL / SQL Set 2: Java / JDO AND && OR || NOT ! JPQL uses SQL notation ... :area Valid operands for the AND operator are TRUE , FALSE , or NULL . The following table shows ... the expression false. If one operand is NULL and the other is TRUE or NULL , the result is NULL

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

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

JPA Connections and Transactions

a persistence unit name as an argument. As an extension, ObjectDB lets you specify a database URL or path ... string that starts with objectdb: or ends with .odb or .objectdb to be a database URL ... ), you must specify an absolute or relative path to a local database file (for example, "my.odb" ). The objectdb

Database Schema Evolution

(their schema) are transparent to ObjectDB. This includes adding, removing, or modifying constructors, methods ... ( 0 , false , or null ). Fields in the old schema that do not have matching fields in the new schema ... and either the same type or a convertible type, as explained below. A matching field can also be located in

JPA Entity Fields

either the Java transient modifier (which also affects serialization) or the JPA @Transient ... its methods or code. This state is reflected by its persistent fields, including fields inherited from superclasses. When an entity is stored in the database, each persistent field must contain either null or

Database Doctor

to the new file. Corrupted database files Database files can be damaged or corrupted for several reasons: Hardware failure (for example, a physical hard drive failure or RAM error). Software failure (for example, a bug in the operating system, Java, or ObjectDB). Copying a database file

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

and take no arguments. They can have any name and any access level ( public , protected , package , or ... ). @PostPersist : Invoked after a new entity is stored in the database (during a commit or flush operation ... is updated in the database (during a commit or flush operation). @PreRemove : Invoked when an entity

Index Definition

, which prevents duplicate values in the indexed field. If you try to commit or flush a transaction ... or a unique index if you specify unique="true" . The default value for unique is false ... files. When an entity is stored in the database, every indexed field must contain either null or a value

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 Management Settings

. Moving or copying a database file that was not closed properly without its recovery file might corrupt the database. The element specifies the recovery file settings: The enabled attribute ( "true" or "false" ) specifies whether a recovery file is used. The sync attribute ( "true" or "false

Setting and Tuning of JPA Queries

. To take effect, you must invoke these methods before running a query with getResultList or ... and on commit or flush . COMMIT - Flushes changes only on an explicit commit or flush . In most JPA ... that EntityManager , or at the individual query level, which overrides the EntityManager setting

Detached JPA Entities

objects are useful when an EntityManager is not available or for transferring objects between different ... to related entities, mark the reference field with CascadeType . DETACH or CascadeType ... , which can be a single entity or a collection of entities: @Entity class Employee { : @OneToOne ( cascade

JPA Class Enhancer

the CLASSPATH - path to class or jar file(s), *? wildcards supported include: -cp : path to input user ... classes You can specify class files and JAR files for enhancement explicitly or by using wildcards ... the syntax of import statements (for example, test.X for a single class or test.pc.* for a package

Storing JPA Entities

calling the persist method or implicitly through a cascade operation. Explicit persist The following ... the EntityManager , or by commit . Referenced embedded objects The following code stores an Employee instance ... fields is also stored. You can do this either by explicitly persisting every reachable object or by

Schema Update

. This is a complementary operation to renaming or moving these elements in your IDE during source code ... when you rename or move persistable classes to another package. If you run the application with persistable classes that have been renamed or moved in the IDE without a matching schema configuration, ObjectDB

Retrieving JPA Entities

the persistence context, JPA constructs a new object and populates it with data from the database or ... through the field. Specifying FetchType . LAZY in either the @OneToOne or @ManyToOne annotation excludes ... or @ManyToMany annotation enables cascaded retrieval for the field. (ObjectDB currently does not

Strings in JPQL and Criteria Queries

: The percent sign ( % ), which matches any sequence of zero or more characters. The underscore ... a path expression), and the right operand is the pattern (usually a parameter or literal). For example ... underscore or percent sign, you must precede it with an escape character and specify that character

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

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 applications

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

, you can either define a standard persistence unit or provide the file path of the ObjectDB database directly ... . However, with ObjectDB, any valid database file path (absolute or relative) is also accepted. ObjectDB considers any string that starts with the objectdb: prefix or ends with .odb or .objectdb

Query Parameters in JPA

, parameters and other query elements are represented by objects (of type ParameterExpression or its superinterface, Parameter ) rather than by names or numbers. For more details, see the Parameters in Criteria ... to specify whether they represent a date, a time, or a combination of date and time, as explained in

Deleting JPA Entities

or implicitly as a result of a cascade operation. Explicit remove To delete an entity from ... if its argument is not an entity instance or if it is a detached entity. It throws a TransactionRequiredException ... a transaction. Cascading remove Marking a reference field with CascadeType . REMOVE ( or CascadeType

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

database is managed on multiple computers, or nodes, which can be in different geographic locations ... cannot. You must enable recording , but no other preparations or settings are required. Setting slave ... master databases, slave databases (by using one or more elements), and databases that are not

SQL Queries Annotations

the results of native SQL queries to entities or scalar values using these annotations: Defines how the result set of a native query maps to entities, scalar values, or constructor results. Groups ... to entity fields or scalar types with these detailed annotations: Maps a native query result to a specific

jakarta.persistence.criteria.CriteriaBuilder

. Parameters: restrictions - zero or more restriction predicates Returns: and predicate. Since: Jakarta ... restriction predicates. A conjunction of zero predicates is true. Parameters: restrictions - a list of zero or ... . Throws: IllegalArgumentException - if an argument is a tuple- or array-valued selection item

SELECT clause (JPQL / Criteria API)

(for example, an entity class) or a lightweight "transfer" class that is used only for collecting ... "). get ("name")); is equivalent to using select with one of the factory methods ( array , tuple , or ... type (as set when CriteriaQuery is instantiated): If the expected result type is Object or Object

JPA Named Queries Annotations

). It is defined on an entity or mapped superclass and assigned a unique name for retrieval ... , cache usage, or fetch graphs. For details and examples, see the JPA Named Queries section of the ObjectDB Manual. Query references Access named queries in the application by name or by using

JPA Query Expressions (JPQL / Criteria)

, such as SELECT , FROM , WHERE , GROUP BY , HAVING , and ORDER BY . Each clause is composed of JPQL or ... [OF] String operator : [NOT] LIKE Logical operators : AND , OR , and NOT JPA queries also support predefined ... , between , isNull , …) Logical expressions ( and , or , not , isTrue )

JPA Fetch Plan Graphs

as a template for a query or find operation, allowing you to override the default fetch strategies ... for defining fetch plans of related entities or embeddables. It enables fine-grained control over deep ... entity attribute to be fetched eagerly. AttributeNode instances are added to an EntityGraph or Subgraph to construct the complete fetch plan.

[ODB1] Chapter 9 - ObjectDB Explorer

. It is shipped as an executable jar that will run on any system with a Java 1.3 JRE or later installed ... a Local Database To open a local database file, use the "File | Open Local" menu command ( or ... ObjectDB Server Edition) use the "File | Open Remote" menu command ( or the equivalent toolbar button

[ODB1] Chapter 6 - Persistent Objects

content, or a transient object, i.e. not related to any database. Storing Objects Explicitly ... can become persistent, either by multiple calls to makePersistent( ... ) , or by passing a collection or array ... . The makePersistentAll( ... ) method stores all the elements in the specified collection or array in the database

[ODB1] Chapter 3 - Persistent Classes

. Instances of these classes that represent objects in the database are called persistent objects or ... of persistent classes that live only in memory) are called transient objects or transient instances ... (constructors, methods and fields) can have any access modifiers (i.e. public, protected, package or private

Eclipse/JPA Java EE Tutorial

For this tutorial you will need the following software: Java JDK (6.0 or above). Eclipse IDE for Java EE Developers. GlassFish Server 3.0.1 ( or above). The last version of ObjectDB (just download ... : ObjectDB 2.3.7_04 or later is required if Glassfish 3.1.2 ( or later) is used. The Tutorial Steps This tutorial consists of the following steps:

NetBeans/JPA Java EE Tutorial

. Required Software For this tutorial you will need the following software: Java JDK (6.0 or above). NetBeans - Java or All bundle The last version of ObjectDB (just download and extract). The tutorial ... and menus might look slightly different but the code would be the same). Note: ObjectDB 2.3.7_04 or

[ODB1] Chapter 8 - ObjectDB Server

An ObjectDB server can manage one or more databases. Databases that are managed by a server ... -cp /lib/odbse.jar com.objectdb.Server Or on Windows: $ java -cp \lib\odbse.jar com.objectdb.Server ... line), or starting the server automatically at boot time and stopping it at shutdown time, or

Step 2: Entity Class and Persistence Unit

) and selecting New Entity Class ... ( or New Other... Persistence Entity Class and clicking Next ). Enter ... clicking and selecting Edit or by double click and then moving to the Source or XML tab in

ObjectDB 1.0 Manual

(SQL, JDBC or JDO) is not required in order to follow this guide, but a strong background ... you may want to extend your knowledge of JDO by reading the JDO specification or a book on JDO. Feedback We would appreciate any comment or suggestion regarding this manual. Please send your comments or questions to support@objectdb.com .