Skip to main content

Entities and the Java Persistence API (JPA)

  • Chapter
  • First Online:
Beginning EJB in Java EE 8

Abstract

Now that you have explored how EJB provides business services through session beans, we’ll turn your attention to a different kind of component called entities, which are classes that represent tables in a database, and whose instances represent rows in those tables. Whereas session beans provide services to a client application, entities represent the business data. A common pattern is for a session bean to provide a convenient interface for manipulating entities in the context of transactional, security, access control, and other enterprise services. Methods to perform Create, Retrieve, Update, and Delete operations, also known as CRUD methods, are exposed on a session bean to the client to provide a “façade” pattern that we will use throughout the book.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Jonathan Wetherbee, Massimo Nardone, Chirag Rathod, and Raghu Kodali

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Wetherbee, J., Nardone, M., Rathod, C., Kodali, R. (2018). Entities and the Java Persistence API (JPA). In: Beginning EJB in Java EE 8. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3573-7_3

Download citation

Publish with us

Policies and ethics