ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh


Existing entity objects can be updated, as explained in chapter 2, by: Retrieving the entity objects into an EntityManager. Updating the relevant entity object fields within an active transaction. Applying changes to the database by calling the commit method. JPQL UPDATE queries provide


As explained in chapter 2, entity objects can be deleted from the database by: Retrieving the entity objects into an EntityManager. Removing these objects from the EntityManager within an active transaction, either explicitly by calling the remove method or implicitly by a cascading operation

What's next?

This chapter introduced the basic principles of JPA using ObjectDB. You can go into details by reading the other chapters of this manual. If you prefer to get started with ObjectDB right away you can follow one of the following tutorials to create and run the example program that was described in

Retrieving JPA Entity Objects

extreme situations this might cause the retrieval of the entire database into the memory

JPA 2 Annotations

JPA defines dozens of annotations that can be divided into the following groups: Annotations for JPA aware classes: Annotations for fields in JPA persistable classes: Annotations for additional JPA configuration: Annotations for JPA lifecycle event callbacks: Java EE container annotations: Many

Java EE 6 JPA Tutorial - Eclipse Project

only if Maven Integration for WTP is installed when the Maven project is imported into the IDE). Choose

Step 4: Add a Controller Class

is automatically constructed and injected by Spring into the guestDao field (because it is annotated

Step 2: Define a JPA Entity Class

the new class. Copy and paste the following code into the newly created Point class: package tutorial

JPA Web App Tutorial - Eclipse Project

Integration for WTP is installed when the Maven project is imported into the IDE). Choose or define

Step 6: Set the Spring XML

To integrate the Spring Framework into a web application we have to add the definition of the Spring dispatcher servlet to the web.xml configuration file and to configure that servlet using another xml configuration file. Open the web.xml file (under Web Pages > WEB-INF) in a text editor (by right

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