Skip to main content
  • 571 Accesses

Abstract

The previous chapter showed how to implement persistent objects using JPA and how to query them with JPQL. The persistence layer is developed using objects that encapsulate and map their attributes to a relational database, thanks to annotations. The idea is to keep the entities as transparent as possible and not intermingle them with business logic. Entities can have methods to validate their attributes, but they are not made to represent complex tasks, which often require an interaction with other components (other persistent objects, external services, etc.).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2009 Antonio Goncalves

About this chapter

Cite this chapter

(2009). Enterprise Java Beans. In: Beginning Java™ EE 6 Platform with GlassFish™ 3. Apress. https://doi.org/10.1007/978-1-4302-1955-2_6

Download citation

Publish with us

Policies and ethics