Home » Search

About SELECT

51-60 of 200Refresh
Tutorial
14

Getting Started with JPA - NetBeans Project

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

Java EE 6 JPA Tutorial - Eclipse Project

: Select File > Import... > Maven > Existing Maven Projects and click Next. Select the guestbook-jee6 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 > Run On Server. (this command is available
Tutorial
14

JPA Web App Tutorial - Eclipse Project

the project zip file: JPA Web Application - Maven Project (6KB). Open the Maven project in Eclipse: Select File > Import... > Maven > Existing Maven Projects and click Next. Select the guestbook-web directory as Root Directory and press ENTER. Select the project and click Finish. Run the project in Eclipse
Manual
14

Query Parameters in JPA

( "SELECT c FROM Country c WHERE c.name = :name", Country.class); return query.setParameter ... .createQuery( "SELECT c FROM Country c WHERE c.name = ?1", Country.class); return query ... (assuming that meaningful names are selected). Therefore, they are preferred over ordinal parameters
Tutorial
14

Spring MVC JPA Tutorial - Eclipse Project

zip file: Spring MVC JPA - Maven Project (7KB). Open the Maven project in Eclipse: Select File > Import... > Maven > Existing Maven Projects and click Next. Select the guestbook-spring directory as Root Directory and press ENTER. Select the project and click Finish. Run the project in Eclipse: Right
Tutorial
14

Step 1: Create a Java EE 6 Web 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 ... ] window and select Add Jar/Folder... Select the objectdb.jar file from the bin subdirectory
Tutorial
14

Step 1: Create a Web Project

. by using File > New Project... Select Java Web > Web Application and click Next. Choose a Project Name (e.g. Guestbook) and click Next. Select Apache Tomcat 6 as the Server. Note ... and select Add Jar/Folder... Select the objectdb.jar file from the bin subdirectory of the ObjectDB
Tutorial
14

Step 2: Entity Class and Persistence Unit

) and selecting New > Class. Enter guest as the package name - use exactly that case sensitive package ... the [Project Explorer] window) and selecting New > Folder (or New > Other... > General > Folder and clicking Next). Select the project src folder as a parent folder, enter META-INF as a new folder
Tutorial
14

Step 2: Entity Class and Persistence Unit

the project node (in the [Package Explorer] window), select New > Source Folder, enter src/main/java ... the new source directory node (in the [Package Explorer] window) and selecting New > Class. Enter guest as ... : Right click the src/main/resources node (in the [Project Explorer]) and select New > Folder
Tutorial
14

Step 3: Add a Main Class

clicking the tutorial package node (in the [Package Explorer] window) and selecting New > Class ... (); // Find the number of Point objects in the database: Query q1 = em.createQuery("SELECT COUNT(p ... ()); // Find the average X value: Query q2 = em.createQuery("SELECT AVG(p.x) FROM Point p