ObjectDB Database Search

1-50 of 200 results

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  Next . Verify that the Create a simple project checkbox is disabled and click Next . Enter 

Step 1: Create a Maven Web Project

We start by creating a new Maven web project in NetBeans: Open the [New Project ] dialog box, e.g. by using File New Project ... Select Maven Maven Web Application and click Next . Choose a Project ... the project . The configuration of the new created project is contained in a pom.xml file that was created

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 a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target

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

Spring MVC JPA Tutorial - Eclipse Project

To open and run the  Spring MVC JPA tutorial  project in Eclipse: Download and extract the project zip file: Spring MVC JPA - Maven Project (8KB) Open the Maven project in Eclipse: Select  File Import... Maven Existing Maven Projects and click  Next . Select the  guestbook

JPA Web App Tutorial - Eclipse Project

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

JPA Web App Tutorial - NetBeans Project

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

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 project . To add ObjectDB/JPA support for the project : Right click the Libraries folder in the [ Projects

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

Getting Started with JPA - NetBeans Project

To open and run the  Quick Start with JPA tutorial project in NetBeans: Download and extract the project zip file: Getting Started with JPA - Maven Project (3KB) Open the Maven project in NetBeans: Select File Open Project ... . Select the points-console directory and click Open Project . Run

Getting Started with JPA - IntelliJ Project

To open and run the  Quick Start with JPA tutorial project in IntelliJ IDEA: Download and extract the project zip file: Getting Started with JPA - Maven Project (3KB) Open the project in IntelliJ IDEA: Select File Open Project ... . Select the points-console directory and click Open Project

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 a Project Name (e.g. Guestbook ) and click Next . Select GlassFish Server 3 (or above) 

Spring MVC JPA Tutorial - IntelliJ Project

To open and run the  Spring MVC JPA tutorial  project in Download and extract the project zip file: Spring MVC JPA - Maven Project (8KB) Open the project in IntelliJ IDEA: Select  File Open Project ... . Select the  guestbook-spring directory and click  OK . Define

JPA Web App Tutorial - Maven Project

, you may download and run the result application as a Maven project : JPA Web App - Maven Project (6KB ... /Guestbook/ You may also open and run the Maven project in your IDE: NetBeans IDE and IntelliJ IDEA have built in Maven support.

Java EE JPA Tutorial - Maven Project

;if you prefer, you may download and run the result application as a Maven project : Java EE JPA Web App - Maven Project (7KB) If  Maven is installed - extract the zip and run the application from ... project in your IDE: NetBeans IDE and IntelliJ IDEA have built in Maven support.

Getting Started with JPA - Maven Project

application as a Maven project :      Getting Started with JPA - Maven Project (3KB ... the Maven project in your IDE: NetBeans IDE and IntelliJ IDEA have built in Maven support.

Spring MVC JPA Tutorial - Maven Project

, you may download and run the finished application as a Maven project : Spring MVC JPA - Maven Project (8KB) If  ... ://localhost:8080/Guestbook/ You may also open and run the Maven project in your IDE: NetBeans IDE and IntelliJ IDEA have built in Maven support.

SELECT clause (JPQL / Criteria API)

. Projection of path expressions JPQL queries can also return results that are not entities. For example ... projection . Projection extracts field values from entities to form the query results. The results ... a query that uses projection when a result path expression resolves to an entity. For example

JPA Class Enhancer

.* ... ... Complete ObjectDB Maven projects are available for download on the Tutorial pages: Quick Start ... in: Run Configurations… Arguments VM arguments In NetBeans, JVM arguments can be set in the project properties: Right-click the project Properties Run VM Options Automatic Java agent enhancer Unless

ObjectDB License

file. This could be useful for small projects , academic assignments, evaluation and learning. ObjectDB ... projects . You may apply using a  support ticket . Please provide information about the academic course or the research project in which you want to use ObjectDB. Support Limited free support

Retrieving JPA Entities

= FetchType . EAGER ) private Collection projects ; : } Specifying FetchType . EAGER in either the @OneToMany ... is retrieved, all the referenced Project instances are also retrieved automatically. Retrieval by

Index Definition

. ObjectDB also uses indexes for sorting results and for projection : SELECT MIN(p.x) FROM Point p WHERE p.x

JPA Criteria Queries

of the SELECT clause. The selection items ( projection ) are defined by the following functional interface

What's next?

program. You can start your own ObjectDB/JPA projects by modifying this example program

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 ... a META-INF/persistence.xml file: Open the [New Folder] dialog box, e.g. by right clicking the project

Step 7: Run the Spring Web App

At this stage your project should have the following structure: Use copy and paste to replace ... ;you can run the application now by right clicking the project  node (in the [ Project Explorer] window ... Maven Jetty plugin: Right click the project node and select Run As Maven Build... Enter 

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 ... objects in the database was created in the project (under Source Packages guest). Use copy and paste ... to the project (under Configuration Files). Open the persistence.xml file in a text editor (by right

Step 2: Entity Class and Persistence Unit

the  project node (in the [Package Explorer] window), select  New Source Folder ... the database was created in the project (under Java Resources: src/main/java guest). Use  copy ... the [ Project Explorer]) and select  New Folder. The parent folder should be resources. Enter META

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 ... objects in the database was created in the project (under Source Packages guest). Use copy and paste ... to the project (under Other Sources src/main/resources META-INF). Open the persistence.xml file in

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 ... (and its annotations) - the Point class is an ordinary Java class. The next step is adding to the project

JPA Tutorials

3 web application: Spring MVC and JPA Maven Projects for Download The tutorials provide step ... are also available for download as ready to use Maven projects (which can be opened and used in Eclipse, NetBeans, IntelliJ IDEA and JDeveloper).

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 [ Projects ] window) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook HTML output: Open the [New JSP File] dialog box by right clicking the WEB-INF node under the Web Pages node (in the [ Projects ] window) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class

Eclipse/JPA Spring MVC Web Tutorial

slightly different but the code would be the same). The tutorial is based on using a Maven project

Step 4: Run the Application

You can run the application now by right clicking the Main node (in the [ Projects ] window) and selecting Run File . The expected output in the [Output] window, is: Total Points: 1000 Average X: 499.5 (0,0) (1,1) (2,2) (3,3) : : (998,998) (999,999) When you run the application for the first time

Spring MVC and JPA Tutorial

an ObjectDB database. This tutorial is available in the following versions: In addition, the demonstrated application is available as a Maven project :

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 tutorial package node (in the [ Projects ] window) and selecting New Java Class ... Enter Point as the class name - use exactly that case sensitive

Step 6: Set the Spring XML

servlet in web.xml ). To generate that file: Right click the WEB-INF node in the [ Projects ] window

Step 1: Install BIRT and ObjectDB Driver

matching the driver version to the ObjectDB server version when using client-server mode. The next step is creating a BIRT Report project .

Step 6: Run the Java EE 6 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 is created under the GlassFish directory (e.g. at domains\domain1\eclipseApps

Step 3: Define an EJB Session Bean

Operations on the database will be performed by an instance of a session bean (EJB) class that we will define in this step: Open the [New Session Bean] dialog box by right clicking the guest package node (in the [ Projects ] window), selecting New Other... Java EE (or Enterprise JavaBeans) Session

Java EE Web Tutorial

. This tutorial is available in the following versions: In addition the demonstrated application is available as a Maven project :

Step 3: Define a Spring DAO Component

Operations on the database will be performed by an instance of a Data Access Object (DAO) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right clicking the guest package node (in the [ Projects ] window under Source Packages) and selecting New

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the Web Pages node (in the [ Projects ] window) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish

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 is created under the Tomcat directory. You can stop the Tomcat server and open

NetBeans/JPA Spring MVC Web Tutorial

slightly different but the code would be the same). The tutorial is based on using a Maven project

Step 3: Add a Main Class

In this step we will add a main class to the project to store and retrieve Point objects from the database: Right click the tutorial package in the [Package Explorer] window and select New Class . The package name should be tutorial . Enter Main as the class name (case sensitive). Click Finish

Step 3: Add a Main Class

In this step we will add code to the Main class (that was generated with the project ) in order to store Point objects in the database and then retrieve them from the database. Use copy and paste to replace the content of the Main class with the following content: package tutorial; import javax

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [ Projects ] window) and selecting New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class

JPA Web Application Tutorial

. This tutorial is available in the following versions: In addition the demonstrated application is available as a Maven project :