ObjectDB Database Search

101-150 of 200 results

JPA Queries

EntityManager  methods such as createQuery to build  query objects using: Direct JPQL query strings ("SELECT ... FROM ... WHERE ..."); or Criteria query objects, as described below. For detailed usage ... clause, representing roots, joins, and fetches. General expressions used within query logic, such as

JPA Criteria Query Date/Time Extraction

a criteria query specify  the enum value that represents that component as the first argument of  ... (such as   java.time.LocalDate , and  java.sql.Date ), including YEAR , MONTH , DAY , DAY_OF_WEEK , and DAY_OF_YEAR . Defines the component types of Time values (such as java.time.LocalTime

JPA Core Types

. Use its static methods to create an EntityManagerFactory as the first step for accessing ... schema management, such as creating, dropping, or truncating schemas. Use this interface ... cache, such as all entities or only those explicitly marked. Specifies how the persistence provider

JPA Metamodel and Graphs

the persistence unit metadata through the main entry point interface: Serves as the central ... : Describes Entity Graphs and Subgraphs. These structures act as "mini-models" or a focused view of the full metamodel, serving as a template to specify exactly which attributes and relationships should be loaded eagerly.

Running JPA Queries

to run this query, as it can return multiple objects: TypedQuery query = em. createQuery ("SELECT c FROM ... the results object to a parameterized type, such as List , causes a compilation warning. To avoid this warning ... using results.get(0) . As a more convenient alternative for queries that are expected to return

JPA Metamodel API

an EntityManager instance named em , you can get a Metamodel instance as follows: Metamodel ... -defined persistable types (also known as managed types) in the persistent object model. Three methods ... managed fields and properties , also known as attributes. For example: // Get all the attributes

JPA Shared (L2) Entity Cache

that it manages. The persistence context serves as a first-level cache. Retrieving an entity ... except those explicitly marked as @Cacheable . For example: @Cacheable // or @Cacheable(true) @Entity public class ... classes except those explicitly marked as not cacheable . For example: @Cacheable (false) @Entity

BIRT/ODA ObjectDB Driver

The ObjectDB BIRT/ODA driver is an extension for the open-source Business Intelligence and Reporting Tools (BIRT). It adds support for ObjectDB as a data source and JPQL as a data set query language ... and JPA tutorial. Driver installation The driver is available as an Eclipse for Java EE Developers

Posting Sample Code

( no persistence unit ). Keep the test as simple as possible - remove unnecessary code (but keep it complete and runnable). You may use the following example as an initial template for your test case: package

UPDATE SET Queries in JPA/JPQL

You can update existing entities, as explained in chapter 2 , by following these steps: Retrieve ... its persistence context. Therefore, we recommend using a separate EntityManager for UPDATE queries. As with any ... / 10 UPDATE Country c SET c.population = c.population * 11 / 10 UPDATE Country AS c SET c.population

Updating JPA Entities

that are not yet managed are also persisted. Automatic change tracking As shown previously, you update ... (employee, "projects"); // reported as dirty em. getTransaction (). commit (); As demonstrated

SSL Configuration

of the ssl element, which can be set to true or false , specifies whether SSL is used. As shown in ... over an insecure network, such as the Internet. SSL Keystore and Truststore Files To use SSL ... includes general details (such as a company name), an RSA private key, and its corresponding public key

JPA Criteria Query Expressions

interfaces is structured as follows: Selection # Base interface for result items └─ Expression # Base ... ;to allow using expression as query results. A boolean expression used to define restrictions in

JPA Lifecycle Events

only in a mapping XML file, such as orm.xml ; there is no equivalent annotation: This mapping file ... classes. The invocation order for listeners is as follows: default listeners, listeners

Setting and Tuning of JPA Queries

can easily make uncommitted changes visible for simple operations, such as find . However, query ... ) or "LAZY" . When LAZY is used, result entities are returned as references with no content

Server Configuration

The configuration element specifies settings for running an ObjectDB Server . The server is also affected by other elements in the configuration file, such as the and elements. The default ... the connection URL string, as explained in the JPA Overview section. The max attribute specifies

ObjectDB License Agreement [ver. 2.0.4]

and only as part of the Customer's product ("The Product"). The Product is not a Database Management ... and provisions to the entire Product, including the embedded Software. 5. The Software is provided " AS

Index Definition

that are stored as part of the entity. Therefore, indexes on multi-part paths are allowed only when using embeddable classes, because the fields of an embedded object are stored as part of the containing entity

Is ObjectDB scalable? What are its limitations?

ObjectDB is highly scalable and can manage efficiently databases in a wide range of sizes, from a few Kilobytes to hundreds of Gigabytes and even Terabytes. ObjectDB can be used in small embedded single user applications as well as in heavy loaded multi threaded multi user applications. ObjectDB

JPA Named Queries

, you should choose names carefully to avoid collisions, for example, by using the unique entity name as ... that is still unknown to ObjectDB. As a workaround, you can introduce classes to ObjectDB before accessing

Literals in JPQL and Criteria Queries

Literals in JPQL, as in Java, represent constant values. JPQL supports various types of literals, including NULL , boolean literals ( TRUE and FALSE ), numeric literals (for example, 100 ), string ... are equivalent. Comparison with NULL in JPQL follows SQL rules for NULL comparison rather than Java rules, as

Database Doctor

such as a computer virus). For these reasons, you should back up database files regularly ... The arguments are as follows: The first argument ( old.odb ) is the path to the corrupted database file

Is ObjectDB better than Object Relational Mapping (ORM)?

As noted above, using ObjectDB instead of a relational database and ORM combination is easier and leads to better performance. ORM tools, however, are very useful where the use of a relational database is mandatory (e.g. as a result of a customer request or when a new application

JPA Criteria Queries

of CriteriaBuilder   as mutable empty objects, and then defined using setter methods. All query types (SELECT ... query, a subquery cannot be executed directly; it serves as an expression within the parent query

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.

Can I use ObjectDB with languages other than Java?

ObjectDB can be used by Java Virtual Machine (JVM) languages, such as Java, Kotlin, Groovy and Scala. It can also be used with other languages, such as Python, JavaScript, Ruby and PHP, but currently only with their JVM implementations (e.g. Jython for Python, GraalVM for JavaScript

JPA Relationships Annotations

which operations, such as PERSIST or REMOVE , propagate to associated entities. Determines ... in the target entity used as the map key for a Map-valued association. For more details, see the Persistent Classes chapter in the ObjectDB manual.

JPA Annotations

classes as entities, embeddables, or mapped superclasses while configuring caching and listener ... associations between entities, such as one-to-one or many-to-many, and specify cascade and fetch

JPA ORM Mapping Annotations

that a persistent property or field should be persisted as a large object (BLOB or CLOB). Specifies ... or unidirectional one-to-many relationship. Specifies a primary key column that is used as

Managing JPA Entities

the same in-memory object. You can also think of the persistence context as a local cache for a given ... and other caches, as explained in the Configuration chapter. By default, managed entities that have not

Step 5: Design a BIRT Report Chart

. In the [Select Chart Type] tab select Tube as the chart type and click Next . In the [Select Data] tab - enter row["y"] as the Y series and  row["x"] as the X series, (use Ctrl + Space in

Step 2: Entity Class and Persistence Unit

  Next ). Enter Guest as the class name - use exactly that case sensitive class name. Enter guest as the package name - use exactly that case sensitive package name. Click Next to create the new ... as a JPA provider with the specified database url. The next step is adding a Spring DAO Component class that will manage Guest entities.

Step 4: Create an ObjectDB Data Set

Queries against the database are represented in BIRT as data sets. To create the data set: Open the [New Data Set] dialog box by right clicking the Data Sets node in the [Data Explorer] window ... a specified range: SELECT p.x as x, p.y as y FROM Point p WHERE p.x BETWEEN :low AND :high Use copy

Spring MVC and JPA Tutorial

that has signed the guestbook is represented as Guest JPA entity, and all Guest entities are stored in an ObjectDB database. This tutorial is available in the following versions: In addition, the demonstrated application is available as a Maven project:

Report Generation with BIRT and JPA

This tutorial demonstrates how to create reports based on data in an ObjectDB database using the popular open source Business Intelligence and Reporting Tools (BIRT). In order to keep things as simple as possible - we will use the basic  points.odb ObjectDB database file from the Getting

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package name (case sensitive). Enter Point as the class name (case sensitive). Click Finish to create

Step 3: Add a Context Listener Class

Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener as ... the Enhancer to enhance the entity class, creates an EntityManagerFactory instance and stores it as

Step 1: Create a Maven Web Project

; maven-archetype-webapp as a filter, select  maven-archetype-webapp in the artifact list and click ... the project node and checking that the  Run As Run on Server command is available

Step 1: Create a Java EE 6 Web Project

a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button

Java EE 6 JPA Tutorial - Eclipse Project

the  guestbook-jee6 directory as Root Directory and press  ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select  Run As Run

Spring MVC JPA Tutorial - Eclipse Project

-spring directory as Root Directory and press  ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select  Run As Run On Server

Step 2: Define a JPA Entity Class

) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package name. Enter Guest as the class name - use exactly that case sensitive class name. Click Finish

JPA Web App Tutorial - Eclipse Project

; guestbook-web directory as Root Directory and press  ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select Run As Run On Server

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java ... page that will serve as the application view and will produce the guestbook output.

Step 2: Define a JPA Entity Class

) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name. Enter guest as the package name - use exactly that case sensitive package name. Click Finish

Step 1: Create a Web Project

.g. Guestbook ). Select Apache Tomcat v6.0 as the Target runtime. Note: You may have to add Tomcat 6 as a new server by clicking the New Runtime... button . Follow the instructions and specify the path

Step 3: Add a Context Listener Class

Other... Select Web Web Application Listener and click Next . Enter GuestListener as the class name - use ... and creates an EntityManagerFactory instance and stores it as an application scope attribute in

Getting Started with JPA - Eclipse Project

directory as Root Directory and press ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select Run As Java Application . Select Main - point and click OK .

Step 4: Add a Servlet Class

GuestServlet as the class name - use exactly that case sensitive class name. Click Finish to create ... ). The next step is adding a JSP page that will serve as the application view and will produce the guestbook output.

Which API should I use - JPA or JDO?

is more commonly used. Therefore, it might be the first choice for most new applications. You can use JPA as the primary API, and if necessary, switch to JDO as a secondary API for special additional features