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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Jonathan Wetherbee
About this chapter
Cite this chapter
Wetherbee, J., Rathod, C., Kodali, R., Zadrozny, P. (2013). Entities and the Java Persistence API. In: Beginning EJB 3. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4693-0_3
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4693-0_3
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4692-3
Online ISBN: 978-1-4302-4693-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)