ObjectDB Database Search

1-50 of 200 results

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

CriteriaBuilder.or(restrictions) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate or (   Predicate... restrictions ) Create a disjunction of the given restriction predicates. A disjunction of zero predicates is false. Parameters: restrictions - zero or more restriction predicates Return: or predicate Since: JPA 2.0

CriteriaBuilder.or(x,y) - JPA Method

JPA Method in javax.persistence.criteria.CriteriaBuilder Predicate or (    Expression  x,     Expression  y ) Create a disjunction of the given boolean expressions. Parameters: x - boolean expression y - boolean expression Return: or predicate Since: JPA 2.0

javax.persistence.criteria.Predicate$BooleanOperator.OR

JPA Enum Constant in javax.persistence.criteria.Predicate$BooleanOperator OR Since: JPA 2.0

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

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

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

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

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

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

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

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

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

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

Detached Entity Objects

. Cascading Detach Marking a reference field with CascadeType . DETACH ( or CascadeType ... of rollback or by a commit failure. Explicit Merge Detached objects can be attached to any ... an instance of an entity class or it is a removed entity. A TransactionRequiredException is thrown

Auto Generated Values

in one or more fields in one or more classes. The @SequenceGenerator annotation is used to define ... is 50). A sequence is global to the application and can be used by one or more fields in one or

Query Parameters in JPA

(of type ParameterExpression or its super interface Parameter ) rather than by names or numbers ... or a combination of date and time, as explained in detail in the Date and Time (Temporal) Types ... ), each with or without an expected type. There is also a method for extracting all the parameters as

Deleting JPA Entity Objects

method or implicitly as a result of a cascade operation. Explicit Remove In order to delete ... is not an instance of an entity class or if it is a detached entity. A TransactionRequiredException ... . REMOVE ( or CascadeType . ALL , which includes REMOVE ) indicates that remove operations

Posting Sample Code

To demonstrate a technical question or an issue - you may have to provide a complete runnable sample program . If an unexpected exception (e.g. NullPointerException or ClassCastException ) is thrown ... warnings (There is no ID defined for this entity hierarchy, The class should have a no-arg public or

Comparison in JPQL and Criteria API

- JPQL / SQL Set 2 - Java / JDO Less Than Less Than or Equal To = Equal = == Not Equal ... are always evaluated to TRUE , FALSE or NULL . When both operands are not NULL (not shown in the table) the operator is evaluated to either TRUE or FALSE , and in that case, == is equivalent to = and != is equivalent

JPA Criteria API Queries

the EntityManagerFactory 's getCriteriaBuilder method or by the  EntityManager 's getCriteriaBuilder method ... method takes a Parameter ( or a ParameterExpression ) instance as the first argument instead of a name or a position (which are used with string based JPQL parameters ). Criteria Query Structure Queries

SELECT clause (JPQL / Criteria API)

are extracted from ( or projected out of) entity objects to form the query results. The results ... that update or delete entity objects, in which managed entity objects are needed. Managed entity ... to using select with one of the factory methods ( array , tuple or construct ) as demonstrated

JPA Queries

these interfaces to build and run JPQL queries. The TypedQuery interface ( or alternatively the older Query ... a TypedQuery or a Query instance. Building a dynamic query using the criteria API is managed by the  ... the EntityManagerFactory 's getCriteriaBuilder method or by the  EntityManager 's

What is ObjectDB?

or convert objects to records/records to objects using SQL or ORM, as opposed to when using relational database systems (RDBMS), such as Oracle, DB2, SQL Server or MySQL.

Eclipse/JPA Java EE Tutorial

. Required Software 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 ... would be the same). Note: ObjectDB 2.3.7_04 or later is required if Glassfish 3.1.2 ( or later) is used

NetBeans/JPA Java EE Tutorial

or above). NetBeans - Java or All bundle The last version of ObjectDB (just download and extract ... : 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:

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

NetBeans/JPA Spring MVC Web Tutorial

NetBeans - using JPA, ObjectDB, Tomcat ( or GlassFish) and Maven. The demo web application ... the following software: Java JDK 6.0 ( or above). NetBeans (Java or All bundle). The tutorial