Home » Search

About new

81-90 of 200Refresh
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
JDO Doc
8

javax.jdo.PersistenceManager

of instances to evict Since: JDO 2.1 void flush() Flushes all dirty, new, and deleted instances to the data store. Flushes all dirty, new, and deleted instances to the data store. It has no effect ... , create and populate a new FetchGroup from the existing definition in the PersistenceManager or
Manual
7

Auto Generated Values

a primary key for every new entity object. These generated values are unique at the database level ... also generates an automatic value during commit for every new entity object. The difference is that a separate ... and IDENTITY, the SEQUENCE strategy generates an automatic value as soon as a new entity object
Manual
7

Database Connection using JPA

> properties = new HashMap();   properties.put("javax.persistence.jdbc.user", "admin ... yet exist a new database file is created. When the application is finished using ... name and password have to specified: Map properties = new HashMap
Manual
7

FROM clause (JPQL / Criteria API)

, NEW, NOT, NULL, NULLIF, OBJECT, OF, OR, ORDER, OUTER, POSITION, SELECT, SET, SIZE, SOME, SQRT ... of that method. Every time the from method is invoked - a new variable is added to the query. Criteria ... various forms of the join method. Every invocation of join adds a new JOIN variable to the query
Manual
7

JPA Persistable Types

, date2 and date3 above may be initialized as new Date(), i.e. with both date and time. Their time ... an exiting database. New enum fields can be added safely only at the end (with new higher ordinal
Manual
7

Literals in JPQL and Criteria Queries

.literal("JPA"); // Date and Time literals: Expression today = cb.literal(new java.sql.Date()); Expression time = cb.literal(new java.sql.Time()); Expression now = cb.literal(new java.sql.Timestamp()); // Enum literal: Expression
Tutorial
7

Step 1: Create a Java EE 6 Web Project

We start by creating a new Java EE 6 Web Application project in NetBeans: Open the [New Project] dialog box, e.g. by using File > New Project... Select Java Web > Web Application and click Next. Choose a Project Name (e.g. Guestbook) and click Next. Select GlassFish Server 3 (or above) and Java EE
Tutorial
7

Step 4: Create an ObjectDB Data Set

the [New Data Set] dialog box by right clicking the Data Sets node in the [Data Explorer] window and selecting New Data Set. Select the data source that was created in the previous step (e.g. ObjectDB ... and paste to enter the above query and click Finish. When the data set is created successfully - a new
Tutorial
7

Step 6: Set the Spring XML

). Use copy and paste to replace the default content of the web.xml file with the following new ... node in the [Projects] window, select New > Other... and then choose the XML category, XML Document ... of the spring-servlet.xml file with the following new content: