Java Reference
In-Depth Information
mixing multiple mapping inheritance strategies within a
single class hierarchy is not required of JPA implementations.
Leverage the Latest Tools
Major integrated development environments (IDEs) now
bundle several JPA-related tools. JDeveloper offers a wizard
that can easily create JPA-based entity classes with
appropriate annotations directly from specified database
tables. With just a couple more clicks, the JDeveloper user
can similarly create a stateless session bean to act as a facade
for these newly created entity beans. NetBeans 6.0 offers
similar JPA wizards, and the Eclipse Dali project supports
JPA tools for the Eclipse IDE.
Add Spring to Your JPA
A developer can use Spring to write JPA-based applications
that can be easily run in standard Java environments, web
containers, and full application server EJB containers with no
changes necessary to the source code. This is accomplished
via the Spring container's ability to inject datasources
configured outside of the code and to support transactions via
aspect-oriented programming also configured outside of the
code. The Spring framework enables JPA developers to
isolate specifics of handling JPA in the various environments
(Java SE standalone, Java EE web containers, and Java EE
EJB
containers)
in
external
configuration
files,
leaving
transparent JPA-based code.
Another feature Spring 2.0 offers JPA developers is the
@Repository
annotation,
which
is
helpful
in
assessing
Search WWH ::




Custom Search