Home » Search

About new

61-70 of 200Refresh
Manual
9

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
9

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
9

Step 1: Create a Java Project

We start by creating a new Eclipse 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 ... the [New Project] dialog box: Select Java Project and click Next. Choose a Project Name (e.g. Tutorial
Tutorial
9

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 ... to create the project. The configuration of the new created project is contained in a pom.xml file
Tutorial
9

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 ... ) and selecting New > Class. Enter tutorial as the package name - use exactly that case sensitive ... to create the new class. Use copy and paste to fill the new source file with the following content
Tutorial
9

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 ... ) and selecting New > Java Class... Enter Point as the class name - use exactly that case sensitive class name. The package name should be tutorial. Click Finish to create the new class. Use copy
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
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 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