About new

81-90 of 200Refresh
Manual
8

Query Parameters in JPA [2011-04-01]

with different parameter values (arguments) is more efficient than using a new query string for every query ... for the queried name the new method embeds the name as a String literal. There are a few drawbacks ... , which is very inefficient. On the other hand, when using parameters, even if a new TypedQuery instance
Manual
8

Query Parameters in JPA

with different parameter values (arguments) is more efficient than using a new query string for every query ... for the queried name the new method embeds the name as a String literal. There are a few drawbacks ... , which is very inefficient. On the other hand, when using parameters, even if a new TypedQuery instance
Tutorial
8

Step 1: Create a Java EE 6 Web Project [2011-02-03]

We start by creating a new Java EE 6 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 ... the Target runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime
Tutorial
8

Step 1: Create a Java EE 6 Web Project

We start by creating a new Java EE 6 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 ... the Target runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime
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 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 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 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
Manual
8

SELECT clause (JPQL / Criteria API)

is specified in a NEW expression, as follows: SELECT NEW example.CountryAndCapital(c.name, c.capital.name ... running this query: String queryStr = "SELECT NEW example.CountryAndCapital(c.name, c ... entity objects are created in the NEW state, which means that they are not managed. Such entity
Tutorial
8

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 ... ), selecting New > Other... > Web > JSP File and clicking Next. The parent folder should be WEB-INF ... that case sensitive class name. Click Finish to create the new JSP file. Now replace the content