ObjectDB ObjectDB

Internal Website Search

61-70 of 200 resultsRefresh
37

JPA Annotations for Classes

JPA defines three types of persistable classes which are set by the following annotations: Chapter 2 of the ObjectDB manual explains these annotations in detail. Entity and mapped super classes ... policy (as explained in chapter 3): Another JPA class annotation defines an ID class: ID classes
37

JPA Exceptions

JPA exceptions are represented by a hierarchy of unchecked exceptions: java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException ... of the JPA exception class subtree is: General errors are represented directly by
36

JPA Annotations for Callback Methods

The following annotations can mark methods as JPA callback methods: The Lifecycle Events section of the ObjectDB Manual explains how to use all these annotations on callback methods and with listener classes.
36

JPA Lifecycle Events

Callback methods are user defined methods that are attached to entity lifecycle events and are invoked automatically by JPA when these events occur. Internal Callback Methods Internal callback methods are methods that are defined within an entity class. For example, the following entity class
36

Storing JPA Entity Objects

setting the ObjectDB configuration or in a JPA portable way, by specifying the cascade-persist XML
36

JPA Annotations for Fields

The way a field of a persistable class is managed by JPA can be set by the following annotations: Additional annotations (and enum) are designated for enum fields: Other additional annotations (and enum) are designated for date and calendar fields: Chapter 2 of the ObjectDB manual explains how to use all the above annotations.
7

Getting Started with JPA - Eclipse Project

To open and run the Quick Start with JPA tutorial project in Eclipse: Download and extract the project zip file: Getting Started with JPA - Maven Project (3KB) Open the Maven project in Eclipse: Select File > Import... > Maven > Existing Maven Projects and click Next. Select the points-console
7

Spring MVC JPA Tutorial - NetBeans Project

To open and run the Spring MVC JPA tutorial project in NetBeans: Download and extract the project zip file: Spring MVC JPA - Maven Project (8KB) Open the Maven project in NetBeans: Select File > Open Project.... Select the guestbook-spring directory and click Open Project. Run the project: Select
7

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New > Class. Enter tutorial as the package name (case sensitive). Enter Point as the class name (case sensitive). Click Finish to create
7

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window) and selecting New > Java Class... Enter Point as the class name - use exactly that case sensitive

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