ObjectDB Database Search

1-50 of 200 results

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 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 Web Project

We start by creating a new Eclipse Dynamic Web Project : 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 ... web  project . Now, add ObjectDB support to the new Eclipse Project - by dragging the objectdb

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

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

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 

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

Step 1: Create a Web Project

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

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) 

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

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

Spring MVC JPA Tutorial - NetBeans Project

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

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

Getting Started with JPA - Eclipse Project

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

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

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 - IntelliJ Project

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

Step 2: Create a Project and a Report

To use BIRT we need to create a BIRT Report project in Eclipse: Open the [New Project ] dialog box, e.g. by using File New Project ... Select Business Intelligence and Reporting Tools Report Project and click Next : Enter a project name and click Finish : Now we can create a first report in the new

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.

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.

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.

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.

JPA Primary Key

a primary key field: @Entity public class Project { @Id @GeneratedValue long id; // still set ... class Project { @Id long id; // must be initialized by the application : } A primary key field ... , the primary key of the following Project entity class consists of two fields: @Entity @IdClass

SELECT clause (JPQL / Criteria API)

the "SELECT *" expression (which is commonly used in SQL). Projection of Path Expressions JPQL ... path expressions , such as c.name , in query results is referred to as projection . The field values are extracted from (or projected out of) entity objects to form the query results. The results

Updating JPA Entity Objects

. getTransaction (). begin (); employee. projects [0] = new Project (); // not detected automatically JDOHelper . makeDirty (employee, " projects "); // reported as dirty em. getTransaction (). commit (); As

JPA Class Enhancer

.*            ... ... Complete ObjectDB Maven projects ... Configurations… Arguments VM arguments In NetBeans JVM arguments can be set at the project properties:    Right clicking the project Properties Run VM Options Automatic Java Agent Enhancer Unless

ObjectDB License

per database file. This could be useful for small projects , academic assignments, evaluation and learning ... 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

Retrieving JPA Entity Objects

) private Collection projects ; : } Specifying FetchType . EAGER explicitly in @OneToMany or @ManyToMany ... for the field. In the above example, when an Employee instance is retrieved all the referenced Project

Index Definition

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

Running JPA Queries

the country names, a query using projection and retrieving country names directly instead

What's next?

your own ObjectDB/JPA projects simply by modifying this sample program. Reading the Next Chapters

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 should be able to run your application now by selecting Run Run Main Project from the main menu (or F6 ): You can select the server in the Run category of the project properties window (right click

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 [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 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  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: 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 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: 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

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

Step 6: Run the Web Application

You can run the application now by right clicking the GuestServlet node (in the [ Projects ] window), selecting Run File , and then clicking  OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory

[ODB1] Chapter 3 - Persistent Classes

to a project that applies on the fly enhancement: package test; /** Additional main - On the Fly JDO Enhancer