Java Developer Magazine on Ulitzer
This tutorial provides step-by-step instructions for creating a Web
application that uses the Java Persistence API (JPA) version 2.0 with Oracle
WebLogic Server 11g Release 1, Spring, EclipseLink, JavaServer Faces (JSF),
and Oracle Database, Express Edition. You will develop this application using
Oracle Enterprise Pack for Eclipse 11g Release 1, Patchset 1 (11.1.1.3).
During the process of creating this application, you'll also get a sneak peek
at planned enhancements to the Eclipse Web Tools Platform.
Application Description
The Web application you will develop in this tutorial is designed for a
company that sells a variety of products. The application will maintain a
list of products for sale as well as a list of customers who placed orders.
In this tutorial, you will develop modules for the Web application. The Add
Customer mod... (more)
Oracle Enterprise Pack for Eclipse allows you to view, create, and manage JPA
entity relationships. The Entity Editor provides a centralized view of all
entity relationships, allows you to modify entity properties, and allows you
to navigate between the object model, mapping associations, and database
schema layers.
The tasks you will complete in this step are:
View an entity relationship diagram, using the Entity Editor View the
properties of JPA persistent entities, using the Entity Editor and the JPA
Details View Manage JPA entity mappings
View an Entity Relationship Diagram, ... (more)
In Part 1 of this tutorial, I showed how to set up a web project and connect
to a database.
In this step, you will use the Data Source Explorer to browse database
artifacts. You may need to re-open the JPA perspective.
In the Data Source Explorer, expand the nodes inside the New Oracle Database
Connection node. You can view the individual tables and columns. Observe that
the Data Source Explorer denotes which columns have been designated as
primary keys. Note that the tables shown below are stored in the JPATUTORIAL
schema.
While browsing database artifacts, simply expand the tr... (more)
The JPA ORM Generation wizard allows modification of existing O/R mappings
and the creation of new entity associations.
The tasks you will complete in this step are:
Create a new one-to-one association between CUSTOMER and CUSTOMERID Review
generated classes with annotations Add annotations to an existing Java class
Create a new one-to-one association between CUSTOMER and CUSTOMERID
Oracle Enterprise Pack for Eclipse also supports the creation of new entity
associations in case your database lacks foreign key definitions (such as for
performance reasons). It can create Simple Associa... (more)
Mixing Open Source and commercial software isn't a new concept. IT
departments have been doing it for years, especially when building out their
core server, networking, and database infrastructures. But using a novel
"blended" application development strategy - one that combines Enterprise
Java APIs and Open Source Java application frameworks - offers the best of
both worlds.
Better Java-based Enterprise Apps with Open Source and Commercial Tools
Many IT organizations already depend on Open Source software for some of
their application development or deployment. But pure Open Sour... (more)