Internal Website Search

1-50 of 200 results

ObjectDB - JPA Object Database for Java

solution. Using a relational database management system (RDBMS) to store and retrieve Java objects requires slow conversions between graphs of Java objects and flat database table rows. Object Relational ... productivity. ObjectDB is the most productive software for developing Java database applications

What is the Java Persistence API (JPA)?

The Java Persistence API (JPA) is a standard API for accessing databases from within Java applications. The main advantage of JPA over JDBC (the older Java API for interacting with databases ... JDBC. Using plain old Java objects (POJO) to represent persistent data can significantly simplify

JPA Annotations for Java EE

The following JPA annotations are in use to integrate JPA into a Java EE application and are managed by the Java EE container:

Can I use ObjectDB with languages other than Java?

ObjectDB can be used by Java Virtual Machine (JVM) languages, such as Java , 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, JRuby for Ruby and Quercus for PHP

Step 1: Create a Java Project

We start by creating a new Java project, using: File New Project... If you are using Eclipse IDE for Java EE Developers, you can see in the [New] menu a command for creating a [JPA Project]. We are not using that type of project in this tutorial but rather an ordinary Java Project. In the [New

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 ... a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 ( Java EE 6) as the Target ... to GlassFish 3 (which has to be downloaded separately) . Click the Finish button to create the Java EE 6

Eclipse/JPA Java EE Tutorial

This is the Eclipse version of the Java EE JPA tutorial. It demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application in Eclipse - using ... . Required Software For this tutorial you will need the following software: Java JDK (6.0 or

NetBeans/JPA Java EE Tutorial

This is the NetBeans version of the  Java EE JPA tutorial. It demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application in ... an ObjectDB database. Required Software For this tutorial you will need the following software: Java JDK (6.0

Step 1: Create a Java EE Web Project

We start by creating a new Java EE 6 Web Application project in NetBeans: Open the [New Project] dialog box, e.g. by using File New Project... Select Java Web Web Application and click Next . Choose ... ;and Java EE 6 Web and click Next . Click the Finish button to create the project (Frameworks are not

Java EE JPA Tutorial - Maven Project

The  Java EE Web Application tutorial provides step by step instructions on how to build a simple Java /JPA database driven web application (for GlassFish 3/ JBoss 6) in  Eclipse or  ... ;if you prefer, you may download and run the result application as a Maven project: Java EE JPA Web

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 (session beans) it requires a full Java EE 6 application server, such as GlassFish 3.0.1 or JBoss AS 6

Step 1: Create a Java Project

We start by creating a new NetBeans Project: Open the [New Project] dialog box, e.g. by using File New Project... Select Java Java Application and click Next . Choose a Project Name (e.g. Tutorial ). The name of the Main class should be tutorial.Main . Verify that exactly this case sensitive fully

Java EE 6 JPA Tutorial - Eclipse Project

To open and run the Java EE 6 Web Application tutorial project in Eclipse: Download and extract the project zip file: Java EE JPA Web App - Maven Project (7KB) Open the Maven project in Eclipse: Select  File Import... Maven Existing Maven Projects and click  Next . Select

Java EE 6 JPA Tutorial - NetBeans Project

To open and run the  Java EE 6 Web Application tutorial project in NetBeans: Download and extract the project zip file: Java EE JPA Web App - Maven Project (7KB) Open the Maven project in NetBeans: Select  File Open Project... . Select the  guestbook-jee6 directory

Java EE 6 JPA Tutorial - IntelliJ Project

To open and run the  Java EE 6 Web Application tutorial project in IntelliJ IDEA: Download and extract the project zip file: Java EE JPA Web App - Maven Project (7KB) Open the project in IntelliJ IDEA: Select  File Open Project... . Select the  guestbook-jee6

Step 6: Run the Java EE 6 Application

Shows how to run the Eclipse/JPA Java EE (J2EE) web application tutorial.

Step 6: Run the Java EE 6 Application

Shows how to run the NetBeans/JPA Java EE (J2EE) web application tutorial.

JPA Persistable Types

, Mapped superclasses, Embeddable classes. Simple Java data types: Primitive types, Wrappers, String ... class is an ordinary user defined Java class whose instances can be stored in the database. The easy ... , an entity class is like any other Java class. It can extend either another entity class or a non-entity

JPA Class Enhancer

reflection. Command Line Enhancement ObjectDB Enhancer is a Java console application. It is contained in the objectdb.jar file. You can run it from the command line as follows: java -cp objectdb.jar com ... . All rights reserved. Usage: java com.objectdb.Enhancer [ | | ] ... - name of a class (without .class suffix

ObjectDB Object Database Features

Requirements Windows, Linux, Unix, Mac OS, and most other OS with Java support. Java 8 or higher Tested ... Database with built in support for  JPA 2 . Java Persistence API (JPA) Most features of JPA 2 ... ). Java Data Objects (JDO) Complete JDO 2 support (passed the JDO 2 TCK). Support for JDO 3 new

Literals in JPQL and Criteria Queries

Literals in JPQL, as in Java , represent constant values. JPQL supports various types of literals ... to null in Java and SQL. Since JPQL is case insensitive, NULL , null and Null are equivalent. Notice that comparison with NULL in JPQL follows the SQL rules for NULL comparison rather than the Java

What is the Java Data Objects (JDO)?

The Java Data Objects (JDO) is another standard for accessing persistent data in databases, using plain old Java objects (POJO) to represent the object model. Unlike Java Persistence API (JPA ... , and it is probably the most popular Java API for object databases today.

Database Server

Server tool is bundled in the objectdb.jar file. You can run it from the command line as follows: java ... : ObjectDB Server [version 2.8.0] Copyright (c) 2019, ObjectDB Software, All rights reserved. Usage: java ... the server, use the start command line argument: java com.objectdb.Server start The Server

Index Definition

classes from package java .lang: Byte , Short , Character , Integer , Long , Float , Double. java .math.BigInteger , java .math.BigDecimal. java .lang.String. java .util.Date , java .sql.Date , java .sql.Time , java .sql.Timestamp. Any enum type. Reference to an entity object. Arrays and collections that contain

JPA Primary Key

, char , int , long , float , double . Equivalent wrapper classes from package java .lang: Byte , Short , Character , Integer , Long , Float , Double. java .math.BigInteger , java .math.BigDecimal. java .lang.String. java .util.Date , java .sql.Date , java .sql.Time , java .sql.Timestamp. Any enum type

What are the system requirements for using ObjectDB?

ObjectDB requires Java 5 or later ( Java 6 is preferred). As a pure Java application, ObjectDB should be able to run on any platform that supports the Java Standard Edition. Either the Java Development Kit (JDK) or the Java Runtime Environment (JRE) can be used. A version of ObjectDB for .NET is currently under development.

Comparison in JPQL and Criteria API

- JPQL / SQL Set 2 - Java / JDO Less Than Less Than or Equal To = Equal = == Not Equal != The two sets differ in the Equal and the Not Equal operators. JPQL follows the SQL notation, where Java uses ... to . When at least one of the two operands is NULL , == and != implement the ordinary Java logic, in

Strings in JPQL and Criteria Queries

', 'a') is evaluated to 0. Notice that positions are one-based (as in SQL) rather than zero-based (as in Java ... are one-based (as in SQL) rather than zero-based (as in Java ). If length is not specified (the third optional argument), the entire string suffix, starting at the specified position, is returned. Java

Logical Operators in JPQL and Criteria API

of logical operators, as shown in the following table: Set 1 - JPQL / SQL Set 2 - Java / JDO AND && OR || NOT ! JPQL follows the SQL notation, while Java uses its own notation (which is also in use by JDOQL ... the Java /JDO && operator as a synonym of AND as part of its JDO support. Binary OR (||) Operator

Numbers in JPQL and Criteria Queries

also supports the % (modulo) and the ~ (bitwise complement) operators that are supported in Java and JDO. JPA follows Java numeric promotion principles. For example, the resulting type ... another, similar to the modulo operator ( % ) in Java (which is also supported by ObjectDB as

Defining a JPA Entity Class

. A JPA entity class is a POJO (Plain Old Java Object) class, i.e. an ordinary Java class ... is an ordinary Java class. The only unique JPA addition is the @Entity annotation, which marks the class as ... to the NotSerializableException that Java throws (unrelated to JPA), when trying to serialize non-serializable objects

JPA Metamodel API

that Java reflection provides for general Java types. The Metamodel Interface The main interface of the JPA ... : // Get the underlying Java representation of the type: Class cls = type. getJavaType (); // Get one of BASIC ... details. For example: // Get the field (or property) name: String name = attr. getName (); // Get Java

JPA Entity Fields

to transient fields in Java that do not participate in serialization). Static and final entity fields ... either the Java transient modifier (which also affects serialization) or the JPA @Transient annotation ... a generic java .lang.Object , as long as the type of the actual value at runtime is persistable (or null

JPA Query Structure (JPQL / Criteria)

The syntax of the Java Persistence Query Language (JPQL) is very similar to the syntax of SQL ... is that SQL works with relational database tables, records and fields, whereas JPQL works with Java ... and easier to use in Java . JPQL Query Structure As with SQL, a JPQL SELECT query also consists 

JPA Tutorials

Tutorial Only basic Java experience is required in order to follow this tutorial. Web Application ... Java , including Servlets, JSP and HTML. The first tutorial demonstrates a simple JPA web application ... WebLogic). The next tutorial shows how to use JPA in a full Model-View-Controller (MVC) Java EE 6 web

[ODB1] Chapter 7 - JDOQL Queries

(usually a persistent class) A filter, which is a boolean expression in a Java like syntax The query ... been done so already. The Result Collection The query result is represented by a java .util.Collection instance and managed like any ordinary Java collection. For example, the number of retrieved

Step 2: Entity Class and Persistence Unit

, enter src/main/ java as Folder Name and click Finish . Open the [New Java Class] dialog box, e.g. by ... the database was created in the project (under Java Resources: src/main/ java guest). Use  copy ... java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence

Step 2: Define a JPA Entity Class

the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name ... code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity

[ODB1] Chapter 8 - ObjectDB Server

the connection URL string. 8.1  Running an ObjectDB Server The ObjectDB server is a pure Java ... as a Java program You can run the server as a Java program from the command line, as so: java -cp /lib/odbse.jar com.objectdb.Server Or on Windows: java -cp \lib\odbse.jar com.objectdb.Server

[ODB1] Chapter 3 - Persistent Classes

. Aside from the requirements described above, a persistent class is like any other Java class ... , int , long , float and double . Selected classes in package java .lang : Boolean , Byte , Short , Character , Integer , Long , Float , Double , Number and String . Selected classes in package java

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 ... objects in the database was created in the project (under Java Resources: src guest). Use copy and paste to replace the new source file content with the following code: package guest; import java .io

Step 2: Define a JPA Entity Class

the [New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window) and selecting New Java Class ... Enter Point as the class name - use exactly that case sensitive ... and paste to fill the new source file with the following content: package tutorial; import java .io

Step 1: Install BIRT and ObjectDB Driver

IDE for Java EE Developers. Update your existing Eclipse IDE for Java EE Developers environment by ... with no Java EE support is more complicated because of BIRT dependencies and is not covered here). To update an existing  Eclipse IDE for Java EE Developers environment: Open the [Install] dialog box by

Step 3: Define an EJB Session Bean

node (in the [Projects] window), selecting New Other... Java EE (or Enterprise JavaBeans) Session ... name. The Java package name should be guest. Click Finish to create the new session bean (EJB ... java .util.List; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax

Step 2: Define a JPA Entity Class

the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window ... and paste to replace the new source file content with the following code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence

[ODB1] Chapter 2 - A Quick Tour

of a single source file, HelloWorld. java , containing a single class: 1 // A simple program that manages a list of strings in a database. 2 3 import java .util.*; 4 import javax.jdo.*; 5 import com ... statements are required: for Java collections (line 3), for JDO (line 4) and for ObjectDB extensions

[ODB1] Chapter 1 - About ObjectDB

ObjectDB for Java /JDO is a powerful Object Database Management System (ODBMS) written entirely in Java . It can efficiently handle a wide range of database sizes, from a few KBs to hundreds of GBs ... Compliant ObjectDB is compliant with the JDO ( Java Data Objects) standard, developed by Sun

[ODB1] Chapter 4 - JDO Metadata

with a transient modifier in the Java source (useful for defining fields as transient in serialization and persistent in JDO), or a field whose declared type is java .lang.Object or some interface, but holds ... a field that is persistent by default to transient, as an alternative to the Java transient modifier

[ODB1] Chapter 9 - ObjectDB Explorer

databases.   9.1  Running the Explorer The Explorer is a pure Java GUI application. It is shipped as an executable jar that will run on any system with a Java 1.3 JRE or later installed ... the Explorer using the following command: java -jar c:\objectdb\lib\odbfe.jar If a database path

[ODB1] Chapter 6 - Persistent Objects

types. Therefore, a JDO portable application should manage Object IDs using java .lang.Object references ... are retrieved one by one: Extent extent = pm.getExtent(Person.class, false); java .util.Iterator itr ... is similar to iteration over any ordinary Java collection using an Iterator instance. Each