About new

71-80 of 200Refresh
Manual
8

Locking in JPA

object. The initial version of a new entity object (when it is stored in the database for the first time ... > properties = new HashMap();   properties.put("javax.persistence.lock.timeout", 2000 ...  - using the createEntityManager method:   Map properties = new HashMap
Tutorial
8

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 ... of the ObjectDB installation directory and click Open. Now you should have a new NetBeans project
Tutorial
8

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 configuration of the new created project is contained in a pom.xml file that was created
Tutorial
8

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 ... : You may have to add Tomcat 6 as a new server by clicking the Add... button. Follow the instructions and specify
Tutorial
8

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 ... the new project: Right click the Reports node in the [Navigator] and select New > Report. Enter
Tutorial
8

Step 3: Add a Context Listener Class

closing that EntityManagerFactory. To register a ServletContextListener: Open the [New Listener] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting New ... All to enable the Finish button. Click Finish to create the new listener class. Now replace the content
Tutorial
8

Step 3: Add a Context Listener Class

closing that EntityManagerFactory. To register a ServletContextListener: Open the [New File] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New ... the new listener class. Now replace the content of the new source file with the following code: package
Tutorial
8

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 WebContent node (in the [Package Explorer] window), selecting New ... that case sensitive class name. Click Finish to create the new JSP file. Now replace the content of the new
Tutorial
8

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 ... to create the new JSP file. Now replace the content of the new jsp file with the following content
Tutorial
8

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 ... to create the new JSP file. Now replace the content of the new jsp file with the following content