ObjectDB Database Search

101-150 of 200 results

Order in WHERE Clause affects behaviour on DATE/DATETIME columns

("query", "%myQuery%"); I don't get any error! The order of the WHERE clauses obviously makes

Entity can be found by find() but not by query

and sometimes we don't get the entity by query. Have you an idea what happens here?   btc_es BTC EmbeddedSystems

jakarta.persistence.OrderBy.value

_name] [ASC | DESC] If ASC or DESC is not specified, ASC (ascending order ) is assumed. If the ordering element is not specified, ordering by the primary key of the associated entity is assumed. Default: "" Since: Jakarta Persistence (JPA) 1.0

ObjectDB License Agreement [ver. 2.0.4]

Please read carefully this software license agreement. By downloading, installing or using ... of this agreement will be binding, unless in writing and signed by an authorized representative of each party. 1 ... by this agreement. 3. The free edition of the Software includes restrictions on the number of classes

JPA Persistence Unit

is optional when using ObjectDB, but required by JPA. persistence.xml Persistence units are defined in ... A persistence unit is defined by a persistence-unit XML element. The required name attribute ( “my-pu ... should be used. ObjectDB is represented by the com.objectdb.jpa.Provider string. If not specified, the first JPA

JPA Exceptions

JPA exceptions are represented by a hierarchy of unchecked exceptions: java.lang.Object java.lang ... are represented directly by the PersistenceException class. Some specific errors are represented by ... transaction is represented by : Database update failures that require transaction rollback are represented by

Database Transaction Replayer

. Recording is enabled by default and can be disabled in the configuration . The ObjectDB Replayer tool ... is useful for two different purposes: It enables recovery from a database failure by replaying the recorded operations. It enables reproducing problems during debugging by repeating a failure. Backup

JPA Metamodel API

Metamodel API is Metamodel . It can be obtained either by the EntityManagerFactory 's getMetamodel method or by the EntityManager 's getMetamodel method (both methods are equivalent). For example, given an EntityManager , em , a Metamodel instance can be obtained by : Metamodel metamodel = em

BIRT/ODA ObjectDB Driver

language. For step by step instructions on using BIRT with ObjectDB see the  Report Generation ... Developers extension. To install it: Open the [Install] dialog box by selecting Help Install New Software ... and press ENTER. Select the ObjectDB Birt/ODA feature. Complete the installation by clicking Next twice

Criteria Query From Elements

variables are represented in criteria queries by descendant interfaces of the From interface: Range variables (bound by an entity class) are represented by the Root subinterface: Join variables (bound by an attribute of a preceding variable in the FROM clause) are represented by the Join subinterface

Database Server

, if an ObjectDB database is accessed directly only by a web application, it should be embedded in ... configuration is loaded automatically as explained in chapter 6 . This can be overridden by specifying ... the Server Configuration , but can be overridden by an explicit command line option: $ java com.objectdb

jakarta.persistence.OneToMany

Set getOrders() { return orders ; } // In Order class: @ManyToOne @JoinColumn(name = "CUST_ID ... without using generics // In Customer class: @OneToMany(targetEntity = com.acme. Order .class, cascade = ALL, mappedBy = "customer") public Set getOrders() { return orders ; } // In Order class

jakarta.persistence.criteria.Path

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Path Type Parameters: - the type referenced by the path Super Interfaces: Expression , Selection , TupleElement Represents a simple ... the string-based API may need to specify the type resulting from the get operation in order to avoid

jakarta.persistence.criteria.Root

Jakarta Persistence (JPA) Interface jakarta.persistence.criteria.Root Type Parameters: - the entity type referenced by the root Super Interfaces: From , Path , FetchParent , Expression , Selection ... the Path.get operation in order to avoid the use of Path variables. For example: CriteriaQuery q

jakarta.persistence.AttributeOverride

defined by the mapped superclass or embeddable class (or embeddable class of one of its attributes ... order to specify it as part of the map key or map value. To override mappings at multiple levels

Entity Management Settings

are handled. ObjectDB can manage non enhanced classes by using reflection at the cost of performance ... entities are always held by strong references in the persistence context (until commit or flush ... that is managed by the EntityManagerFactory and shared by all its EntityManager instances. The level 2 cache

Online Backup

An ObjectDB database can be backed up by simply copying or archiving the database file while the database is offline (i.e. when it is not open in an ObjectDB server and not in use by any application ... . Starting Online Backup The online backup can be started by executing a special query on an EntityManager

General Settings and Logging

a limit size that is specified by the threshold attribute. The mb and kb suffixes represent megabytes ... has to be specified for ObjectDB to avoid using sockets that are expired by the firewall. The element    ObjectDB manages a list of the recently accessed database URLs for use by the Explorer

criteria api / embedded objects / where order

to the order of the where clouse and the 2.7.4 wasn't. Unfortunatly I was not able to strip ... to the order of the where clause, meaning that the result set differs. As far as I understand there might be some performence issues related to the order but no different result set

Mapped by fields are not initialized by JOIN FETCH in queries

As demonstrated in this forum thread , a mapped by collection field with lazy fetch mode is not initialized in results of a query that uses JOIN FETCH on that collection field (when enhancement is used). support Support   Build 2.4.1_06 fixes this issue (fields are now initialized

Server Configuration

is affected also by other elements in the configuration file, particularly the and the configuration elements ... . If another port is specified it also has to be specified by clients in the URL connection string ... specifies the maximum number of simultaneous connections that are accepted by the server. A request

Logical Operators in JPQL and Criteria API

|| NOT ! JPQL follows the SQL notation, while Java uses its own notation (which is also in use by JDOQL ... expressions are represented in criteria queries by Expression and descendant interfaces. For example, a boolean path (a field or a property) is represented by Path : Path isInUN = country

Numbers in JPQL and Criteria Queries

The following arithmetic operators are supported by JPA: 2 unary operators:   + (plus) and - (minus). 4 ... of the same type. The MOD Function The MOD function calculates the remainder of the division of one number by another, similar to the modulo operator ( % ) in Java (which is also supported by ObjectDB as

JPA Named Queries

named queries instead of dynamic queries may improve code organization by separating the JPQL ... carefully to avoid collision (e.g. by using the unique entity name as a prefix). It makes sense to add ... at Runtime Named queries are represented at runtime by the same Query and TypedQuery interfaces

JPA Query API

Queries are represented in JPA 2 by two interfaces - the old Query interface ... with an EntityManager (represented by em in the following code snippets), which serves as a factory ... which retrieves all the Country objects in the database is represented by both q1 and q2 . When building

Chapter 6 - Configuration

: This page explains how ObjectDB configuration works in general. The Configuration Path By default ... explicitly by setting the "objectdb.home" system property: System.setProperty("objectdb.home", "/odb ... : $ java "-Dobjectdb.home=/odb" ... The Configuration File As noted above, by default

Updating JPA Entity Objects

by fields that are marked with CascadeType . PERSIST or CascadeType . ALL are also persisted ... yet are also persisted. Automatic Change Tracking As shown above, an update is achieved by modifying a managed ... demonstrated above, array changes are not detected automatically ( by default) but it is possible

Chapter 1 - Quick Tour

This chapter demonstrates basic ObjectDB and JPA concepts by introducing a simple example program ... that contains points in the plane. Each point is represented by an object with two int fields, x and y, that hold the point's x and y coordinates. The program demonstrates CRUD database operations by

jakarta.persistence.criteria.CriteriaQuery.orderBy(List)

orderBy (    List o ) Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified, the previous ordering , if any, is simply removed, and results will be returned in no particular order

jakarta.persistence.EntityManager.createStoredProcedureQuery(String,Class...)

must be specified in the order in which the result sets is returned by the stored procedure invocation. Parameters: resultClasses - classes to which the result sets produced by the stored procedure

jakarta.persistence.EntityManager.createStoredProcedureQuery(String,String...)

must be specified in the order in which the result sets is returned by the stored procedure ... result sets returned by the stored procedure procedureName - name of the stored procedure in the database

jakarta.persistence.criteria.CriteriaBuilder.locate(Expression,String,int)

if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned. Warning: the order of the first two parameters of this method is reversed compared

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

position in a string is denoted by 1. If the string to be located is not found, 0 is returned. Warning: the order of the parameters of this method is reversed compared to the corresponding function in JPQL

jakarta.persistence.criteria.CriteriaBuilder.locate(Expression,String)

in a string is denoted by 1. If the string to be located is not found, 0 is returned. Warning: the order of the parameters of this method is reversed compared to the corresponding function in JPQL

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

character if found. The first position in a string is denoted by 1. If the string to be located is not found, 0 is returned. Warning: the order of the first two parameters of this method is reversed

Schema Update

, other schema changes are handled by ObjectDB automatically. Note: Extreme caution is required ... is changed from the original name, which is specified by the required name attribute, to the new name ... attribute is specified the class name is changed from the original name, which is specified by

Is ObjectDB better than competing object databases?

of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA ... relational database by using an ORM JPA provider such as Hibernate, EclipseLink or Open JPA ... . The support of two standard APIs (JPA and JDO) by ObjectDB minimizes the risk

Step 1: Install BIRT and ObjectDB Driver

We start by installing the BIRT development environment and the ObjectDB data source driver ... IDE for Java EE Developers. Update your existing Eclipse IDE for Java EE Developers environment by ... an existing  Eclipse IDE for Java EE Developers environment: Open the [Install] dialog box by

Step 3: Add a Context Listener Class

The Guest entity objects will be stored in an ObjectDB database, which will be represented by ... created if not existing yet) when the web application starts, by instantiating an EntityManagerFactory . The database will be closed when the web application stops (or when the web server shuts down), by

Step 6: Design a BIRT Report Table

In this final step we will add a simple table to the report: Open the [Insert Table] dialog box by ... ) layout. Set the column number to 2 , number of details to 1 , select the data set (e.g. Points by X ) in the third field and click OK . Fill the table with data by dragging the x and y columns from

Step 1: Create a Web Project

We start by creating a new Eclipse Dynamic Web Project: Open the [New Project] dialog box, e.g. by ... as a new server by clicking the New Runtime... button . Follow the instructions and specify the path ... web project. Now, add ObjectDB support to the new Eclipse Project - by dragging the objectdb

Step 3: Add a Context Listener Class

The Guest entity objects will be stored in an ObjectDB database, which will be represented by ... created if not existing yet) when the web application starts, by instantiating ... down), by closing the  EntityManagerFactory . To register a ServletContextListener : Open the [New

Step 5: Add a JSP Page

] dialog box by right clicking the WEB-INF node under the Web Pages node (in the [Projects] window ... , which contains a simple form for signing the guestbook, followed by a list of all the guests that have already signed (which are retrieved from the request's guestDao attribute that is set by

Step 2: Entity Class and Persistence Unit

the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window ... + ")"; } } The Guest entity class will represents guests in the database. We also need to configure JPA by setting a META-INF/persistence.xml file: Open the [New Folder] dialog box, e.g. by right clicking the project

Eclipse/JPA Spring MVC Web Tutorial

a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a  Guest JPA entity object and all the  Guest

Step 4: Run the Application

You can run the application now by right clicking the Main node (in the [Projects] window ... 1,000 objects. You can view the content of the database file by opening it in the ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .

JPA Web App Tutorial - Maven Project

The  JPA Web Application tutorial provides step by step instructions on how to build a simple ... . Building a new application step by step is an effective way to learn - but if you prefer ... ) If  Maven is installed - extract the zip and run the application from the command line by

Step 1: Create a Maven Web Project

We start by creating a new Maven-WTP dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using  File New Project... Select  Maven Maven Project and click  ... folder: Note: You should verify now that Maven Integration for WTP is installed, by right clicking

NetBeans/JPA Web Application Tutorial

application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity object

Step 1: Create a Java EE 6 Web Project

We start by creating a new Java EE dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose ... runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button