ObjectDB Database Search

51-100 of 200 results

How to deploy an Objectdb project with Jboss AS 7?

Hi, I cannot deploy Guestbook project to Jboss AS 7. I followed the previous threads concerning ... . Is there an instruction how to deploy objectdb project to Jboss AS 7 step by step?   I used ...   how can I do it right? I'm attaching the project with all the changes. Please help !  

Deploying a BIRT Project using ObjectDB onto Tomcat

-BIRT driver. If you still have a problem you may submit a sample web project that demonstrates it. support Support

Issue deploying EJB project to Jboss/Glassfish

I have been trying to deploy an EJB project created in Eclipse/Juno to both JBOSS and Glassfish.  The error I get with Glassfish is cannot Deploy HappyThought Deployment Error for module ... .jar in the web application lib directory). Adding to the persistence.xml file a request to load

Privacy Policy

may use Cookies. Web Beacons:  Certain sections of our Service and our emails may contain small electronic files known as web beacons (also referred to as clear gifs, pixel tags, and single-pixel ... , while Session Cookies are deleted as soon as You close Your web browser. We use both Session and Persistent

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

Chapter 6 - Configuration

changes the value of $objectdb . For example, in a web application, in which objectdb.jar is located in WEB -INF/lib , the ObjectDB home directory ( $objectdb ) is WEB -INF . You can also define $objectdb

ObjectDB Object Database Features

for Eclipse, NetBeans, IntelliJ and Maven. Getting Started Tutorial  (console). Web Application Tutorial (Tomcat/Jetty). Java EE  Web Tutorial (GlassFish/JBoss). Spring MVC Framework Web Tutorial

Database Server

, if an ObjectDB database is accessed directly only by a web application, it should be embedded in that web application and run within the web server process. Starting the ObjectDB Server The ObjectDB

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

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

Server Configuration

to the document root directory of a web server. Every database file in the data directory and in

Database Connection using JPA

connections during their lifetime. For instance, in a web application it is common to establish a separate

Online Backup

in applications that provide round the clock service (24/7/365) such as most web applications

Index Definition

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

What's next?

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

Running JPA Queries

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

Posting Sample Code

protected constructor, An entity class must be a top level class, The project does not contain

Step 4: Add a Servlet Class

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

Step 4: Add a Servlet Class

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

Step 6: Set the Spring XML

To integrate the Spring Framework into a web application we have to add the definition of the Spring dispatcher servlet to the  web .xml configuration file and to configure that servlet using another xml configuration file. Open the  web .xml file (under src/main/webapp/ WEB -INF) in a text

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java ... . web .bind.annotation.RequestMapping; import org.springframework. web .servlet.ModelAndView; @Controller ... ); } } The GuestController class is defined as a Spring managed web controller using the @Controller annotation

Step 3: Add a Context Listener Class

created if not existing yet) when the web application starts, by instantiating an EntityManagerFactory . The database will be closed when the web application stops (or when the web server shuts down), by ... Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener

Step 5: Add a JSP Page

] dialog box by right clicking WEB -INF under src/main/webapp (in the [Package Explorer] window), selecting  New Other... Web JSP File and clicking Next . The parent folder should be WEB -INF ... replace the content of the new jsp file with the following content: JPA Guestbook Web Application

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 5: Add a JSP Page

  New Other... Web JSP File and clicking  Next . Enter  guest as the jsp file name ... replace the content of the new jsp file with the following content: JPA Guest Book Web Application ... (and the last in this tutorial) is running the web application .

Step 5: Add a JSP Page

New Other... Web JSP File and clicking Next . Enter guest as the jsp file name - use exactly ... of the new jsp file with the following content: JPA Guest Book Web Application Tutorial Name: The JSP ... " attribute that is set by the servlet in the previous step). The next step (and the last one in this tutorial) is running the web application .

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 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [Create Servlet] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting  New Other... Web Servlet and clicking  Next . The Java package name should be guest

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 GlassFish, ObjectDB and JPA. The demo web application manages a basic guestbook page. Every visitor

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 NetBeans - using GlassFish, ObjectDB and JPA. The demo web application manages a basic guestbook page

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [Create Servlet] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting  New Other... Web Servlet and clicking  Next . The Java package name should be guest. Enter

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

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

[ODB1] Chapter 8 - ObjectDB Server

configuration may also be used by multi user applications (such as web applications) where the same ... to the document root directory of a web server. Every file in the data directory or in its subdirectories ... Configuration Similar to a web server, which can serve either a single website or multiple websites of one or

[ODB1] Chapter 5 - JDO Connections

during their lifetime. For instance, in a web application it is very common to establish a separate database connection for every web request. In general, holding a database connection open for longer than necessary ... . PersistenceManager instances are usually obtained for short term use (for example, per web request

[ODB1] Chapter 6 - Persistent Objects

for representing objects in web applications (in which parameters are represented by strings ... ), rather than an actual object ID instance. This is a classic case in web applications, in which passing string values between web pages is easier than passing real object ID instances. In this case

[ODB1] Chapter 4 - JDO Metadata

the following paths (in the order shown): META-INF/package.jdo WEB -INF/package.jdo package.jdo a/package.jdo ... paths (in the order shown): META-INF/package.jdo WEB -INF/package.jdo package.jdo X.jdo A metadata file ... classes can be specified in a package.jdo file located in META-INF , WEB -INF or in any other path

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

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 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 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 [Package Explorer] window) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package

Getting Started with JPA

versions: In addition the demonstrated application is available as a Maven project :

[ODB1] Chapter 3 - Persistent Classes

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