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.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 = cb

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

Database Transaction Replayer

files). Recording is disabled by default and can be enabled in the configuration . The ObjectDB Replayer ... . This feature is useful for two purposes: Recovering from a database failure by replaying the recorded operations. Reproducing problems during debugging by repeating a failure. Recording transactions

Literals in JPQL and Criteria Queries

) numeric literals. This feature is not supported by all JPA implementations. String literals JPQL ... , 'Adam' or '' ), and a single quotation mark within a string is represented by two single quotation ... escape characters (for example, "Adam\'s" and "abcd 1234" ). However, this syntax is not supported by

BIRT/ODA ObjectDB Driver

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

Online Backup

Because an ObjectDB database is stored as a single file in the file system, you can back it up by ... it is not open in an ObjectDB server or in use by any application. ObjectDB also supports online ... You can start an online backup by executing a special query on an EntityManager ( em ) instance

Updating JPA Entities

that are referenced by modified entities through fields that are marked with CascadeType . PERSIST or ... an entity by modifying it within an active transaction. You do not need to invoke an EntityManager method ... classes are enhanced. Therefore, for efficiency, ObjectDB by default ignores array changes

Logical Operators in JPQL and Criteria API

, while Java uses its own notation, which is also used by the JDO Query Language (JDOQL). ObjectDB ... , Boolean expressions are represented by the Expression interface and its descendants. For example, a Boolean path (a field or property) is represented by Path : Path isInUN = country. get ("isInUN

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

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

Database Replication and Clustering

master databases, slave databases ( by using one or more elements), and databases that are not ... by a server on localhost:6000 and a slave database managed by a server on localhost:6001 . In ... ;user=b;password=b" ); A composite URL contains two or more database URLs separated by a pipe character

JPA Named Queries

named queries instead of dynamic queries can improve code organization by separating JPQL query ... , you should choose names carefully to avoid collisions, for example, by using the unique entity name as ... Queries at Runtime At runtime, named queries are represented by the Query and TypedQuery interfaces

Chapter 6 - Configuration

: The configuration path By default, the configuration file is loaded from $objectdb/objectdb.conf ... . You can also define $objectdb explicitly by setting the objectdb.home system property: System.setProperty ... an argument to the JVM: $ java "-Dobjectdb.home=/odb" ... The configuration file By default

Entity Management Settings

attribute specifies how non-enhanced classes are handled. ObjectDB can manage non-enhanced classes by ... . The valid values are "weak" , "soft" , and "strong" . Modified entities are always held by strong ... attribute specifies the size of the shared level-2 cache that is managed by

JPA Persistence Unit

is optional when using ObjectDB but required by JPA. Programmatic configuration ... useful for microservices, dynamic environments, or applications where configuration is managed by ... packedEntity.jar sample.MyEntity1 sample.MyEntity2 A persistence unit is defined by the persistence

Chapter 1 - Quick Tour

This chapter demonstrates basic ObjectDB and JPA concepts by introducing a simple example program ... is represented by an object with two int fields, x and y , that store the point's x and y coordinates. The program demonstrates CRUD database operations by storing, retrieving, updating, and deleting

JPA Exceptions

manage broad persistence issues by using the base class. The exception hierarchy is as follows ... and locking exceptions Lock acquisition failures during updates or retrieval are indicated by : Thrown ... : Thrown by Query.getSingleResult() when the query returns no results. Thrown by Query.getSingleResult

SSL Configuration

the example, SSL is disabled by default. Enable SSL when accessing remote ObjectDB databases ... by using the JDK keytool utility: https://docs.oracle.com/javase/6/docs/technotes/tools/solaris/keytool.html By using these keystore and truststore files, a client can verify during the SSL handshake

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

JPA Named Queries Annotations

of the ObjectDB Manual. Query references Access named queries in the application by name or by using ... . Retrieve it by result type from EntityManagerFactory.getNamedQueries , and use it to get a TypedQuery instance via EntityManager.createQuery .

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 entities will be stored in an ObjectDB database, which will be represented by a JPA's ... 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 closing

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 entities will be stored in an ObjectDB database, which will be represented by a JPA's ... 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 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 and all the  Guest entities

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 and all the Guest

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

Step 2: Entity Class and Persistence Unit

the [New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window ... to the project (under Configuration Files). Open the persistence.xml file in a text editor ( by right clicking and selecting Edit or by double click and then moving to the Source or XML tab in

Java EE Web Tutorial

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 and all the  Guest entities are stored in an ObjectDB database

Step 5: Add a JSP Page

] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... 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 "guests" attribute that is set by the servlet in

Step 4: Run the Application

You can now run the application by right clicking the Main.java file (in the [ Package Explorer ] window) and selecting Run As Java Application . The expected output in the Eclipse [Console] window ... by opening it in the ObjectDB Explorer : This is the end of the Eclipse JPA tutorial. Learn more about ObjectDB and JPA by reading the Manual .

NetBeans/JPA Spring MVC Web Tutorial

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 JPA entity and all the Guest entities

Eclipse/JPA Java EE Tutorial

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 and all the Guest entities are stored in an ObjectDB database. Required Software

Eclipse/JPA Web Application Tutorial

. The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by ... is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity

Getting Started with JPA - Maven Project

The Getting Started with JPA tutorial provides step by step instructions on how to build a simple JPA database driven application in Eclipse or NetBeans . Building a new application step by step ... ) If Maven is installed - extract the zip and run the application from the command line by : mvn test