Abstract
Java Persistence API has two sides. The first is the ability to map objects to a relational database. Configuration by exception allows persistence providers to do most of the work without much code, but the richness of JPA also allows customized mapping from objects to tables using either annotation or XML descriptors. From simple mapping (changing the name of a column) to more complex mapping (inheritance), JPA offers a wide spectrum of customizations. As a result, you can map almost any object model to a legacy database.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2010 Antonio Goncalves
About this chapter
Cite this chapter
Goncalves, A. (2010). Managing Persistent Objects. In: Beginning Java™ EE 6 Platform with GlassFish™ 3. Apress. https://doi.org/10.1007/978-1-4302-2890-5_4
Download citation
DOI: https://doi.org/10.1007/978-1-4302-2890-5_4
Publisher Name: Apress
Print ISBN: 978-1-4302-2889-9
Online ISBN: 978-1-4302-2890-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)