Home » Search

About SELECT

41-50 of 200Refresh
Manual
18

Running JPA Queries

The Query interface defines two methods for running SELECT queries: Query.getSingleResult - for use ... query = em.createQuery("SELECT c FROM Country c", Country.class); ListSELECT c FROM Country c"); List results = query
Tutorial
18

Step 7: Run the Spring Web App

as a server in your NetBeans - you should be able to run your application now by selecting Run > Run Main Project from the main menu (or F6): You can select the server in the Run category of the project properties window (right click the project node and select Properties to open it). Alternatively
Manual
18

CRUD Database Operations with JPA

objects in the database by using a simple query: Query q1 = em.createQuery("SELECT COUNT(p) FROM Point p"); System.out.println("Total Points: " + q1.getSingleResult()); The query string ("SELECT ... of a query that returns a single result: Query q2 = em.createQuery("SELECT AVG(p.x) FROM Point p
Forum
18

Class fields selection to store

Class fields selection to store
Forum
18

Selective merge/cascade of detatched entity

Selective merge/cascade of detatched entity
Tutorial
17

Getting Started with JPA - Eclipse Project

: Select File > Import... > Maven > Existing Maven Projects and click Next. Select the points-console directory as Root Directory and press ENTER. Select the project and click Finish. Run the project in Eclipse: Right click the project node and select Run As > Java Application. Select Main - point and click OK.
Manual
17

Paths and Types in JPQL and Criteria API

identification variables and SELECT result variables. Parameters - when instances of these classes are assigned ... through a NULL value The following query retrieves country names with their capital city names: SELECT ... of all the entity objects in the database, excluding Country entity objects: SELECT COUNT(e) FROM
Tutorial
17

Step 1: Install BIRT and ObjectDB Driver

 Eclipse IDE for Java EE Developers environment: Open the [Install] dialog box by selecting Help ... Neon, Oxygen) and press ENTER. Click the Select All button to select all the BIRT features. Complete ... To install the ObjectDB data source driver for BIRT: Open the [Install] dialog box by selecting Help
Manual
15

DELETE Queries in JPA/JPQL

an alternative way for deleting entity objects. Unlike SELECT queries, which are used to retrieve data from ... returns the number of objects that have been deleted by the query. Selective Deletion The structure of DELETE queries is very simple relative to the structure of SELECT queries. DELETE queries
Tutorial
15

Getting Started with JPA - IntelliJ Project

: Select File > Open Project.... Select the points-console directory and click Open Project. Run the project in IntelliJ IDEA: Select Run > Run Main Project... (or F6). Click Select Main Class.