© Michael Müller 2018
Michael MüllerPractical JSF in Java EE 8 https://doi.org/10.1007/978-1-4842-3030-5_29

29. Data Facade

Michael Müller1 
(1)
Brühl, Nordrhein-Westfalen, Germany
 

For Books, we used a simple service to store an entity. Each service derived an abstract service class and provided the class of the given entity. Although this approach was quite easy, it needed a concrete service for each entity.

Alumni is a bigger application, and it uses many entities. Some entities are related and can be grouped together. During the registration process, for example, Alumni creates an Account object. A message is sent to the user who follows an activation link. After this activation, the account is activated. We want to access the Account as well as ...

Get Practical JSF in Java EE 8: Web Applications ​in Java for the Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.