ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh
12

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
11

javax.persistence.criteria.CriteriaQuery

roots Since: JPA 2.0 Selection<T> getSelection() Return the selection of the query, or null if no selection has been set. Return the selection of the query, or null if no selection has been set. Returns: selection item Since: JPA 2.0 AbstractQuery<T> groupBy(List<Expression<?>> grouping) Specify
10

JPA Entity Fields

the Department entity): SELECT e FROM Employee e WHERE e.department = :d The mappedBy element defines ... ; } In that case the employees field is filled with the results of the following query: SELECT e ... query results by specifying a selected key field using the MapKey annotation: @Entity public class
2

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
2

Step 3: Add a Main Class

the database: Right click the tutorial package in the [Package Explorer] window and select New > Class ... of Point objects in the database: Query q1 = em.createQuery("SELECT COUNT(p) FROM Point p ... value: Query q2 = em.createQuery("SELECT AVG(p.x) FROM Point p
2

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.
2

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.
2

JPA Web App Tutorial - Eclipse Project

the project zip file: JPA Web App - 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: Right
2

Step 1: Create a Java EE 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
2

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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support