ObjectDB Database Search

51-100 of 200 results

Obtaining a JPA Database Connection

to manipulate an ObjectDB database we need an EntityManager instance. Operations that modify database ... to be able to generate an EntityManagerFactory . But when using ObjectDB you can either define a standard persistence unit in an XML file or you can simply provide the file path of the ObjectDB database

JPA Entity Fields

persistable types . ObjectDB supports persistent fields with any declared static type, including ... above are required when applicable. ObjectDB , however, does not enforce using any of these annotations ... with the @Embedded annotation, requiring ObjectDB to verify that the type is indeed embeddable: @Entity

JPA Persistable Types

. ObjectDB supports all the JPA persistable types, which are: User defined classes - Entity classes ... no-arg constructor. cannot be final and cannot have final methods or final instance variables. ObjectDB ... . In most cases ObjectDB can overcome a missing no-arg constructor. Aside from these constraints

Database Replication and Clustering

ObjectDB supports master-slave replication (cluster). When replication (or clustering) is used ... with the master database. Setting a Master Database A master ObjectDB database is an ordinary database, which is managed on an ordinary ObjectDB   database server . Any ObjectDB database on any server

About Us

ObjectDB Software develops, markets and supports the ObjectDB Object-Oriented Database Management System (ODBMS). ObjectDB Software is the market leader in providing a very high performance ... ) standards, since ObjectDB is the first object oriented database with built in support of JPA and JDO

Database Explorer

ObjectDB Database Explorer is a visual GUI tool for managing ObjectDB databases. It can be used to view data in ObjectDB databases, execute JPQL and JDOQL queries and edit the content of databases. Running the Explorer The ObjectDB Explorer is contained in the explorer.jar executable jar file

JPA Persistence Unit

is optional when using ObjectDB , but required by JPA. persistence.xml Persistence units are defined in ... . objectdb .jpa.Provider META-INF/mappingFile.xml packedEntity.jar sample.MyEntity1 sample.MyEntity2 ... should be used. ObjectDB is represented by the com. objectdb .jpa.Provider string. If not specified, the first JPA

Locking in JPA

in ObjectDB (and in JPA) is always at the database object level, i.e. each database object ... by another transaction. When using ObjectDB , optimistic locking is enabled by default and fully ... , if they happen, are detected earlier. Optimistic Locking ObjectDB maintains a version number for every entity

Setting and Tuning of JPA Queries

are flushed only on explicit commit/flush. In most JPA implementations the default is AUTO . In ObjectDB ... . Therefore, when performance is important, this issue has to be considered. Lock Mode (setLockMode) ObjectDB uses ... Hints Additional settings can be applied to queries via hints. Supported Query Hints ObjectDB

General Settings and Logging

The configuration element specifies ObjectDB settings that are relevant to both the server ... ; The element To meet memory constraints ObjectDB can use temporary files when processing large data ... has to be specified for ObjectDB to avoid using sockets that are expired by the firewall. The element

Server Configuration

The configuration element specifies settings for running an ObjectDB Server . The server ... of ObjectDB databases that the server manages. The $ objectdb prefix, if specified (as demonstrated above), represents the ObjectDB home directory . The data path of an ObjectDB server is similar

JPA Primary Key

an object database, ObjectDB supports implicit object IDs, so an explicitly defined primary key is not required. But ObjectDB also supports explicit standard JPA primary keys, including composite primary keys and automatic sequential value generation . This is a very powerful feature of ObjectDB

JPA Named Queries

the @NamedQuery annotation. ObjectDB supports JPA XML mapping files, including the definition of named ... and less so when using ObjectDB , this alternative is not covered in this manual. Using Named Queries ... classes must be available. ObjectDB makes the definition of a persistence unit optional. Named queries

SSL Configuration

when accessing remote ObjectDB databases over an insecure network such as the Internet. SSL Keystore ... Connecting to an SSL-enabled ObjectDB server requires specifying the " objectdbs " protocol (instead of the standard " objectdb " protocol) in the connection URL on the client side: EntityManagerFactory emf

Index Definition

but might be presented in the ObjectDB Explorer and in logging. When an entity object is stored in the database ... firstName; String lastName; Address address; : } Indexes in Queries ObjectDB manages a BTree for every index. A BTree is an ordered map data structure that ObjectDB maintains in the file

Shared (L2) Entity Cache

cache, which are managed on the client side - ObjectDB manages also several caches on the server ... in the ObjectDB configuration. Per persistence unit in the persistence.xml  file. Per entity class - using annotations. ObjectDB Configuration The shared cache size is specified in the ObjectDB

Logical Operators in JPQL and Criteria API

expressions out of simple JPQL boolean expressions. Logical Operators ObjectDB supports 2 sets ... , the JDO Query Language). ObjectDB supports both forms. Binary AND (&&) Operator The following ... is NULL and the other operand is either TRUE or NULL , the result is NULL (unknown). ObjectDB supports

Chapter 1 - Quick Tour

This chapter demonstrates basic ObjectDB and JPA concepts by introducing a simple example program ... ObjectDB databases and perform basic CRUD operations (Create/Store, Retrieve, Update and Delete) on ObjectDB databases. The example program that this chapter presents manages a simple database

What's next?

This chapter introduced the basic principles of JPA using ObjectDB . You can go into details by reading the other chapters of this manual. If you prefer to get started with ObjectDB right away ... your own ObjectDB /JPA projects simply by modifying this sample program. Reading the Next Chapters

Database Schema Evolution

(their schema) are transparent to ObjectDB . This includes adding, removing and modifying constructors, methods ... of an entity class are detected by ObjectDB . New entity objects have to be stored in the new class ... , have to be converted to the new schema. Note: In client-server mode the ObjectDB server must be restarted

Defining a JPA Entity Class

Point objects from the database: package com. objectdb .tutorial; import javax.persistence.Entity ... , ObjectDB supports implicit object IDs, so an explicitly defined primary key is not required. On the other hand, ObjectDB also supports explicit  JPA primary keys ,  including composite

Posting Sample Code

by ObjectDB - posting the full stack trace with no sample program (using the Issue Tracking ... method (preferred over JUnit). Use embedded mode to connect to the ObjectDB database directly ... ;   " objectdb :$ objectdb /db/test.tmp;drop");        

Privacy Policy

", "We", "Us" or "Our" in this Agreement) refers to ObjectDB Software Ltd, 109 Vernon House Friar Lane Unit 632 ... visit and user actions during page views). Website  refers to ObjectDB Website, accessible from  https://www. objectdb .com You  means the individual accessing or using the Service, or

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

Auto Generated Values

generated for that field. This is primarily intended for primary key fields but ObjectDB ... strategies can be used as explained below. The Auto Strategy ObjectDB maintains a special global ... . ObjectDB does not have tables, so the TABLE and SEQUENCE strategies are almost identical. A tiny

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

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

Retrieving JPA Entity Objects

FetchType . LAZY in either @OneToOne or @ManyToOne annotations (currently ObjectDB does not distinguish ... annotations (currently ObjectDB does not distinguish between the two) enables cascading retrieval ... activation and retrieval of objects by ObjectDB , helps hide some of the direct interaction

What is the Java Persistence API (JPA)?

(as classes and objects). ObjectDB is the only database management system with built in support of the Java Persistence API (JPA). By interacting with ObjectDB using standard JPA you can keep your application portable. The unique benefit of using ObjectDB is that the overhead of an intermediate ORM

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.

Schema Update

The configuration element supports renaming packages, classes and fields in ObjectDB databases as ... , other schema changes are handled by ObjectDB automatically. Note: Extreme caution is required ... configuration file contains an empty element. If the element is not empty ObjectDB tries to apply

Step 1: Create a Maven Web Project

Name (e.g. Guestbook ) and select Java EE 5. Enter Maven Group Id (e.g. com. objectdb .tutorial.spring ... under Project Files in the [Project] window: To add dependency on the Spring MVC Framework and ObjectDB ... file and use copy and paste to replace its content with the following settings: 4.0.0 com. objectdb

Step 1: Create a Maven Web Project

dependency on the Spring MVC Framework and ObjectDB and to automatically download all the required JAR ... ; copy and paste to replace its content with the following settings: 4.0.0 com. objectdb .tutorial.spring Guestbook war 1.0 Guestbook http://maven.apache.org UTF-8 objectdb ObjectDB Repository https://m2

Step 7: Run the Spring Web App

the persistence.xml file - instead of RESOURCE_LOCAL you will have to specify JTA . Since we are using ObjectDB ... server and open the database file in ObjectDB Explorer : To enable on the fly enhancement (weaving ... and select Properties. In the Platform tab in VM Options enter:- -javaagent:C:\ objectdb \bin

Step 1: Create a Java Project

) and click Next . In the Libraries tab, click Add External JARs... and select the objectdb .jar file from the bin subdirectory of the ObjectDB installation directory: Click Finish to create the project ... with ObjectDB /JPA support. ObjectDB /JPA can also be added to existing projects, by adding

Step 4: Run the Application

) When you run the application for the first time, a new ObjectDB database file is generated in the db sub-directory under the ObjectDB installation directory. Consequent runs of the application will use ... 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 .

Step 1: Create a Java Project

the project. To add ObjectDB /JPA support for the project: Right click the Libraries folder in the [Projects] window and select Add Jar/Folder... Select the objectdb .jar file from the bin subdirectory of the ObjectDB installation directory and click Open . Now you should have a new NetBeans project

Step 4: Run the Application

, a new ObjectDB database file is generated in the db subdirectory under the ObjectDB installation ... 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 .

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open ... definition in an XML file is missing. This is discussed in the ObjectDB Manual . But nevertheless, this class is a valid ObjectDB entity class, despite the warning. The next step is adding a context

Step 1: Create a Web Project

ObjectDB /JPA support for the project: Right click the Libraries folder in the [Projects] window and select Add Jar/Folder... Select the objectdb .jar file from the bin subdirectory of the ObjectDB ... with ObjectDB /JPA support. The next step is creating a JPA Entity class .

Step 1: Create a Java EE Web Project

required). To add ObjectDB /JPA support for the project: Right click the Libraries folder in the [Projects] window and select Add Jar/Folder... Select the objectdb .jar file from the bin subdirectory of the ObjectDB installation directory and click Open . Now you should have a NetBeans Java EE 6 Web

NetBeans/JPA Java EE Tutorial

NetBeans - using GlassFish, ObjectDB and JPA. The demo web application manages a basic guestbook page ... an ObjectDB database. Required Software For this tutorial you will need the following software: Java JDK (6.0 or above). NetBeans - Java or All bundle The last version of ObjectDB (just download and extract

Eclipse/JPA Java EE Tutorial

GlassFish, 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 database ... above). Eclipse IDE for Java EE Developers. GlassFish Server 3.0.1 (or above). The last version of ObjectDB (just

Step 7: Run the Spring Web App

automatic enhancement (weaving) in Tomcat it has to be run with ObjectDB as a Java agent ... without specifying a Java agent. Since we are using ObjectDB in embedded mode - the database file ... ; ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the  Manual .

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open ... indicates that a persistence unit definition in an XML file is missing. This is discussed in the ObjectDB Manual . But nevertheless, this class is a valid ObjectDB entity class, despite the warning

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 .

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

[ODB1] Chapter 4 - JDO Metadata

at runtime, ObjectDB determines whether or not each class is persistent. It searches for JDO metadata ... , which are defined in the JDO specification, are ignored by ObjectDB if specified (as a pure object database, ObjectDB always uses datastore identity with its own object-id class). 4.3  

[ODB1] Chapter 7 - JDOQL Queries

There are various ways to retrieve objects from an ObjectDB database, as shown in section 6.3 ... bitwise operators ( & , | ) are not supported. Methods ObjectDB supports using any method that does ... . One of the useful string methods that is not supported by JDO 1.0 but supported in ObjectDB