Id Generation With an Oracle Database Sequence Using JPA / JDeveloper 11g (Doc ID 805893.1)

Last updated on AUGUST 04, 2016

Applies to:

Oracle TopLink - Version 10.1.3.1 to 10.1.3.5 [Release AS10gR3]
Oracle JDeveloper - Version 11.1.1.0.1 to 11.1.1.0.2 [Release Oracle11g]
Information in this document applies to any platform.

Goal

The following shows the steps required to setup a small demo using the Java Persistence API (JPA) within JDeveloper 11g for id generation using a database sequence. Many databases including Oracle's support an internal mechanism for id generation called sequences.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms