ObjectDB Database Search

1-50 of 200 results

Running JPA Queries

The Query interface defines two methods for running SELECT queries: Query.getSingleResult () : Use ... addition, the Query interface defines a method for running DELETE and UPDATE queries: Query.executeUpdate () : Use to run DELETE and UPDATE queries. Ordinary query execution (with getResultList

Download and Run

Download and Run @Entity record Point(int x, int y) { }

Step 7: Run the Spring Web App

;you can run the application now by right clicking the project node (in the [Project Explorer] window), selecting  Run As Run on Server , selecting the Tomcat 6.0 server and clicking Finish . To install a new server check the Manually define a new server radio button (after Run As Run on Server

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 4: Run the Application

You can now run the application by right clicking the Main.java file (in the [ Package Explorer ] window) and selecting Run As Java Application . The expected output in the Eclipse [Console] window ... ) When you run the application for the first time, a new ObjectDB database file is generated in the db sub

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 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 Java EE 6 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

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

Doctor fails to run when running in parallel on more DB files.

We've got this exception, when running DB Doctor in parallel on multiple DB files. com.objectdb.o.UserException: Attempt to open a non existing file './tmp.E3Mwf13d7o/objectdb_7666012114926572695/DoctorSection_0.fls' at com.objectdb.o.MSG.a(MSG.java:64) at com.objectdb.o.LFL.x(LFL.java:809) at com

JPA Class Enhancer

.jar file. You can run it from the command line as follows: $ java -cp objectdb.jar com.objectdb ... . Alternatively, you can run the Enhancer by using a shell script ( enhancer.bat on Windows and enhancer.sh ... is the classpath in which the Enhancer itself is running ): $ java com.objectdb.Enhancer -cp src test.X test.pc

Database Doctor

. We also recommend that you regularly validate production database files (or their backups) by running the ObjectDB Doctor diagnosis to identify potential problems early. Running doctor diagnosis The ObjectDB Doctor tool is included in the objectdb.jar file. You can run the tool from the command line: $ java -cp

Database Management Settings

to automatically repair a database that was not closed properly by running the Replayer tool ... of re- running the query. The programs attribute specifies how many compiled query programs to cache. Cached ... . Activation codes are generated by running the Activator utility from the command line: $ java -cp objectdb

JPA Query API

interface makes it easier to run queries and process results in a type-safe manner. Building queries ... dynamic query construction because you can build the query string dynamically at run time. The JPA ... The following pages explain how to define and run queries in JPA: In addition, the following pages describe the syntax of the JPA Query Language (JPQL):

SELECT clause (JPQL / Criteria API)

demonstrates how to run this query and process the results: TypedQuery query = em. createQuery ( "SELECT c ... = capitalName; } } The following code demonstrates how to run this query: String queryStr = "SELECT

JPA Entity Fields

is much less efficient than navigation through ordinary persistent fields because it requires running queries ... when a Department entity is retrieved from the database. ObjectDB accomplishes this by effectively running

Database Transaction Replayer

is bundled in the objectdb.jar file. You can run it from the command line: $ java -cp objectdb.jar com ... . You can also run the Replayer up to a specified transaction. For example: $ java -cp objectdb.jar com

Schema Update

when you rename or move persistable classes to another package. If you run the application with persistable ... these changes, the application runs only with a configuration that matches them exactly. The default

What's next?

This chapter introduced the basic principles of JPA with ObjectDB. For more details, see the other chapters in this manual. To start using ObjectDB immediately, follow one of the tutorials below to create and run the example program from this chapter: These tutorials explain how to run the example

Setting and Tuning of JPA Queries

The Query and TypedQuery interfaces define various methods for setting and tuning query execution . To take effect, you must invoke these methods before running a query with getResultList or getSingleResult . Result range (setFirstResult, setMaxResults) The setFirstResult and setMaxResults methods

Server Configuration

The configuration element specifies settings for running an ObjectDB Server . The server is also affected by other elements in the configuration file, such as the and elements. The default configuration file contains the following element: The element The element specifies how clients can connect

Database Replication and Clustering

databases Setting up slave databases is straightforward. You only need to run an ObjectDB database server

Spring MVC JPA Tutorial - IntelliJ Project

To open and run the  Spring MVC JPA tutorial project in Download and extract the project ... has to be downloaded separately). Define Run Configuration: Select  Run Edit Configurations ...   OK . Click  OK again to close the Configurations dialog box. Run the project in IntelliJ

[ODB1] Chapter 8 - ObjectDB Server

the connection URL string. 8.1   Running an ObjectDB Server The ObjectDB server is a pure Java ... the odbse.jar file on both the client and the server computers. This section explains how to run ... . The Server as a Java program You can run the server as a Java program from the command line, as so: $ java

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 ... Project . Run the project: Select Run Run Main Project... (or F6 ). Choose or define the server and click

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 ...   Finish . Run the project in Eclipse: Right click the project node and select  Run As Run

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 ... . Run the project in Eclipse: Right click the project node and select  Run As Run On Server

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 ... and click  Open Project . Run the project: Select  Run Run Main Project... (or  F6

Getting Started with JPA - NetBeans Project

To open and run the  Quick Start with JPA tutorial project in NetBeans: Download and extract ... NetBeans: Select File Open Project... . Select the points-console directory and click Open Project . Run the project in NetBeans: Select Run Run Main Project... (or F6 ). Click Select Main Class .

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 ... . Run the project in IntelliJ IDEA: Select Run Run Main Project... (or F6 ). Click Select Main Class .

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 ... . Run the project in Eclipse: Right click the project node and select Run As Run On Server

JPA Web App Tutorial - Maven Project

, you may download and run the result application as a Maven project: JPA Web App - Maven Project (6KB) If  Maven is installed - extract the zip and run the application from the command line by ... /Guestbook/ You may also open and run the Maven project in your IDE: NetBeans IDE and IntelliJ IDEA have built in Maven support.

Step 1: Create a Maven Web Project

the project node and checking that the  Run As Run on Server command is available ... -plugin 6.1.10 10 foo 9999 start-jetty pre-integration-test run 0 true stop-jetty post-integration-test

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 ... . You will have to deploy the generated WAR file in your GlassFish server. You may also open and run the Maven

Getting Started with JPA - Maven Project

is an effective way to learn - but if you prefer, you may download and run the result ... ) If Maven is installed - extract the zip and run the application from the command line by: mvn test ... and install ObjectDB - Maven will download the ObjectDB jar automatically. You may also open and run

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  Maven is installed - extract the zip and run the application from the command line: mvn package ... ://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.

[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 ... on those respective operating systems are also provided. Running the Executable JAR directly The Explorer

[ODB1] Chapter 2 - A Quick Tour

the program is run another string is stored in the database and all the strings in the database are printed to standard output. The output of the first run is expected to be: Hello World 0 The output of the second run is expected to be: Hello World 0 Hello World 1 After two runs , the database contains

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 ... . If you need a web application that can run on a simple servlet container (such as Tomcat or Jetty

Step 6: Design a BIRT Report Table

now to see the table with the real data: You can run the report by right clicking the report node in the [Navigator] window and selecting Report Run Report :  

Getting Started with JPA

This tutorial demonstrates how to create and run a simple JPA application. The demonstrated application uses JPA to store and retrieve simple  Point entities, where each  Point has two persistent ... to start by running a live sample application in your IDE, you should be able to follow

[ODB1] Chapter 6 - Persistent Objects

to as persistence aware . Persistence aware classes must also be run through the JDO enhancer ... navigation from a reachable object using persistent fields is also reachable. On every run ... collector, execution of the database garbage collector requires an explicit call. It can be run in

[ODB1] Chapter 3 - Persistent Classes

things. Command Line Enhancement The classic method to enhance classes is to run the enhancer from ... The enhancer can be run without arguments to get usage instructions: $ java com.objectdb.Enhancer ... for the classes (the default is the classpath in which the enhancer is running ): $ java com.objectdb.Enhancer

Eclipse/JPA Spring MVC Web Tutorial

This is the Eclipse version of the  Spring MVC and JPA tutorial. It demonstrates how to create and run a full Java Spring MVC (Model View Controller) web application in Eclipse - using ObjectDB, JPA, Tomcat (or GlassFish) and Maven. The demo web application manages

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 a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. All visitors

Step 6: Set the Spring XML

the WEB-INF directory. The next step (and the last in this tutorial) is  running the Spring web application .

Step 6: Set the Spring XML

for JSP pages in the WEB-INF directory. The next step (and the last in this tutorial) is running the Spring web application .

Step 1: Create a Maven Web Project

;     run              

Getting Started with JPA and Eclipse

This is the Eclipse version of the Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in Eclipse. The demonstrated application uses JPA to store and retrieve simple Point entities, where each Point has two persistent fields: x and y

NetBeans/JPA Web Application Tutorial

This is the NetBeans version of the  JPA Web App tutorial. It demonstrates how to create and run a database driven Java web application in NetBeans - using Tomcat 6 Apache Tomcat Server 6.0 ( some modifications are needed for Tomcat 7.0 ), ObjectDB and JPA. The demo web