Internal Website Search

101-150 of 200 results

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

objectdb -2.6.9_02 (with " objectdb .temp.no-enhancement-crc-check" system property ... there are now obsolete): -  Issue #1924 - ObjectDB -2.6.9: Failed to commit transaction: Failed ... with the other generic value wrapper examples, as it exhibits a problem with ObjectDB that the others do not

JPA Metamodel API

the persistence unit (which is optional when using ObjectDB ) then only known managed types are returned ... ); These three methods can also be used with types that are still unknown to ObjectDB (not listed in ... the specified type to ObjectDB . Type Interface Hierarchy Types are represented in the Metamodel API by

Comparison in JPQL and Criteria API

ObjectDB supports two sets of comparison operators, as shown in the following table:   Set 1 ... its own notation (which is also in use by JDOQL, the JDO Query Language). ObjectDB supports both forms ... . For embeddable objects, e1 = e2 if e1 and e2 have exactly the same content. ObjectDB supports

JPA Annotations for Relationships

implementations, ObjectDB does not enforce specifying any of the annotations above. Specifying a relationship ... annotations are supported by ObjectDB for the inverse side of a bidirectional relationship (which is calculated by a query) : Details about all these annotations are provided in Chapter 2 of the ObjectDB manual.

Updating JPA Entity Objects

the update. Therefore, to be able to apply database updates on commit, ObjectDB must detect changes ... are enhanced. Therefore, for efficiency purposes, the default behavior of ObjectDB ignores array ... to report a change explicitly by invoking the JDO's makeDirty method. Alternatively, ObjectDB

Working with JPA Entity Objects

), which can represent physical objects in the database. Managing an ObjectDB Object Database using JPA ... at it is that the persistence context also functions as a local cache for a given EntityManager . ObjectDB ... it and it is automatically removed from the persistence context. ObjectDB can be configured to use strong

Strings in JPQL and Criteria Queries

String Methods ( ObjectDB Extension) ObjectDB also supports ordinary Java String methods

Date and Time in JPQL and Criteria Queries

methods for extracting date and time parts but some JPA implementations, as well as ObjectDB , support such functions as an extension. ObjectDB supports 6 functions for extracting the YEAR , MONTH , DAY

Collections in JPQL and Criteria Queries

that doesn't contain  'English' . ObjectDB enables as an extension to standard JPQL to use both operators ( IN and MEMBER OF) with any type of collection, so in ObjectDB these operators

JPA Reference (JavaDoc)

of these documentation pages is to serve as a reference. In order to learn how to use JPA and ObjectDB please read the ObjectDB manual .

Numbers in JPQL and Criteria Queries

binary operators:   + (addition), - (subtraction), * (multiplication) and / (division). ObjectDB ... another, similar to the modulo operator ( % ) in Java (which is also supported by ObjectDB as

Literals in JPQL and Criteria Queries

+17 ObjectDB also supports hexadecimal numeric literals (e.g. 0xFF , 0xFFL ) and octal numeric ... two single quotes (e.g. 'Adam''s' ). ObjectDB also supports the syntax of Java and JDO for string literals

JPA Annotations for Value Generation

Automatically generated values are mainly useful for primary key fields, but are supported by ObjectDB also for regular (non primary key) persistent fields. At the field level, the @GeneratedValue ... : More details about automatic value generation are provided at the Generated Value section of the ObjectDB Manual.

JPA Query API

ObjectDB . In the context of the queries above, if there are no Country  instances in the database ... variant is valid because it introduces the Country class to ObjectDB . Dynamic JPQL, Criteria API

JPA Annotations for Mapping (ORM)

The following JPA annotations and enums are designated for mapping a JPA object model to a relational database, and are not required by ObjectDB : ObjectDB silently ignores all the above annotations.

JPA Annotations for Classes

JPA defines three types of persistable classes which are set by the following annotations: Chapter 2 of the ObjectDB manual explains these annotations in detail. Entity and mapped super classes ... are useful in representing composite primary keys as explained in the Primary Key section of the ObjectDB manual.

GROUP BY and HAVING clauses

which returns the first letters as result. ObjectDB is very flexible in allowing JPQL expressions anywhere in ... BY clause is like the WHERE clause for the FROM clause. ObjectDB supports the HAVING clause

Server User List

The configuration element lists the users that are allowed to access the ObjectDB Server and specifies their specific settings (username, password, permissions, quota). The default configuration ... . A superuser is authorized to manage server settings using the ObjectDB Explorer . A value of "$default

Chapter 4 - JPA Queries (JPQL / Criteria)

clauses are explained: ObjectDB also supports the Java Data Objects (JDO) Query Language (JDOQL ... (see chapter 7 in ObjectDB 1.0 manual for a description JDOQL).

JPA Annotations for Callback Methods

The following annotations can mark methods as JPA callback methods: The Lifecycle Events section of the ObjectDB Manual explains how to use all these annotations on callback methods and with listener classes.

Storing JPA Entity Objects

the ObjectDB configuration or in a JPA portable way, by specifying the cascade-persist XML element in the XML

JPA Annotations for JPQL Queries

The following annotations are used to define static named JPA queries: The JPA Named Queries section of the ObjectDB Manual explains and demonstrates how to use these annotations to define named JPQL queries.

FROM clause (JPQL / Criteria API)

response time. Database Management Systems (DBMS), including ObjectDB , try to optimize the execution

JPA Annotations for Fields

The way a field of a persistable class is managed by JPA can be set by the following annotations: Additional annotations (and enum) are designated for enum fields: Other additional annotations (and enum) are designated for date and calendar fields: Chapter 2 of the ObjectDB manual explains how to use all the above annotations.

JPA Queries

Queries are represented in JPA by the Query and TypedQuery interfaces: The JPA Query API section (in chapter 4 of the ObjectDB manual) provides detailed explanation of how exactly to use these interfaces to build and run JPQL queries. The TypedQuery interface (or alternatively the older Query

Step 6: Run the Web Application

You can run the application now by right clicking the GuestServlet node (in the [Project Explorer] window) and selecting Run As Run on Server Finish : Since we are using ObjectDB in embedded mode ... the database file in ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .

NetBeans/JPA Spring MVC Web Tutorial

NetBeans - using JPA, ObjectDB , Tomcat (or GlassFish) and Maven. The demo web application ... entity objects are stored in an ObjectDB database. Required Software For this tutorial you will need ... a Maven project. Therefore, required JAR files ( ObjectDB , Spring Framework) will be downloaded

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click ... and paste to copy the following content to the  persistence.xml file: com. objectdb .jpa.Provider Now ObjectDB should be used as a JPA provider with the specified database url. The next step

Eclipse/JPA Web Application Tutorial

;to create and run a database driven Java web application in Eclipse - using Tomcat 6, ObjectDB and JPA ... and all the Guest entity objects are stored in an ObjectDB database. Required Software ... of ObjectDB (just download and extract). The tutorial was written for Eclipse 3.6.1 but it should work

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window ... file with the following new content: com. objectdb .jpa.Provider guest.Guest Now ObjectDB should be used

Step 6: Run the Java EE 6 Application

execution URI). Since we are using ObjectDB in embedded mode - the database file is created ... server and open the database file in ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .

Step 6: Run the Web Application

). Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory. You can stop the Tomcat server and open the database file in ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .

Step 1: Create a Web Project

web project. Now, add ObjectDB support to the new Eclipse Project - by dragging the objectdb ... : Now you should have an Eclipse Dynamic Web project with ObjectDB /JPA support. The next step is creating a JPA Entity class .

Step 3: Add a Context Listener Class

The Guest entity objects will be stored in an ObjectDB database, which will be represented by ... void contextInitialized(ServletContextEvent e) { com. objectdb .Enhancer.enhance("guest.*"); EntityManagerFactory emf = Persistence.createEntityManagerFactory("$ objectdb /db/guest.odb"); e

JPA Web App Tutorial - Maven Project

and install ObjectDB or a Java web server - Maven will download the ObjectDB jar and the Jetty

Spring MVC and JPA Tutorial

This tutorial demonstrates how to create and run a full Java Spring MVC (Model View Controller) web application using Tomcat (or GlassFish), JPA, ObjectDB and Maven. The demo web application manages ... are stored in an ObjectDB database. This tutorial is available in the following versions: In

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

JPA Tutorials

The following tutorials demonstrate how to develop database driven applications using JPA and the ObjectDB ODBMS (Object Oriented Database Management System). Console JPA Tutorial The Quick Start tutorial demonstrates how to use ObjectDB and JPA in a console application: Quick Start with JPA

Java EE Web Tutorial

This tutorial demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application using GlassFish, ObjectDB and JPA. Since this web application uses Java EE 6 EJB ... is represented by a  Guest entity object and all the  Guest entity objects are stored in an ObjectDB

Getting Started with JPA - Maven Project

and install ObjectDB - Maven will download the ObjectDB jar automatically. You may also open and run

JPA Web Application Tutorial

This tutorial demonstrates how to create and run a database driven Java web application using Tomcat 6, ObjectDB and JPA. The demo web application manages a basic guestbook page. Every visitor ... by a  Guest entity object and all the  Guest entity objects are stored in an ObjectDB

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window ... a context listener class that will manage a JPA's EntityManagerFactory representing the ObjectDB database.

Getting Started with JPA

will be straightforward. That is one of the benefits of ObjectDB , which is the only Object Database with built in ... ; ObjectDB Manual , but if you prefer to start by running a live sample application in your IDE

Spring MVC JPA Tutorial - Maven Project

and install ObjectDB or a Java web server - Maven will download the ObjectDB jar and the Jetty

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

Getting Started with JPA and Eclipse

Developers or Eclipse IDE for Java Developers), you only need to download and extract the ObjectDB

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 designated to be used mainly with relational databases. ObjectDB is the only object database

JDO Annotations for Mapping (ORM)

The following JDO annotations and enums are designated for mapping a JDO object model to a relational database, and are not required by ObjectDB : ObjectDB silently ignores all the above annotations.

JDO Annotations for Index Definition

The following annotations are used to define indexes on persistent fields: The Index Definition section of the ObjectDB manual explains these annotations in details.

What is the Java Data Objects (JDO)?

with both relational and object databases. JDO is supported by many object databases, including ObjectDB