ObjectDB ObjectDB

Internal Website Search

81-90 of 200 resultsRefresh

Running JPA Queries

of a single object is easy and the code is simple: Query query = em.createQuery("SELECT COUNT(c) FROM

Paths and Types in JPQL and Criteria API

expressions in the above code can be divided into two main groups: FROM variable expressions, represented by

Locking in JPA

a PESSIMISTIC_READ lock on that database object. For example, consider the following code fragment: em1

Database Explorer

that include user defined methods can be supported by the Explorer only when the code of these methods

Step 2: Define a JPA Entity Class

code: package guest; import java.io.Serializable; import java.sql.Date; import javax.persistence

Step 3: Define an EJB Session Bean

code: package guest; import java.util.List; import javax.ejb.Stateless; import javax

Step 4: Add a Servlet Class

servlet class. Now replace the content of the new source file with the following code: package guest

Getting Started with JPA and NetBeans

might look slightly different but the code would be the same). This tutorial consists of the following steps:

Step 4: Add a Servlet Class

of the new source file with the following code: package guest; import java.io.IOException; import

Which API should I use - JPA or JDO?

code. When to prefer JDO JDO might be preferred when portability to other object databases

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