Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

EclipseLink/Development/EmployeeExample JSF EJB JPA

Employee Example with JSF-EJB-JPA

This is an updated version of the Employee demo with a JSF front-end and an EJB services layer. In addition to showing general mapping and packaging this application adds some addition complexity showing how additional criteria can be automatically added.

  • Multi-Tenancy: The EMPLOYEE table stores Employee instances for multiple company. Queries performed against an EntityManager have additional criteria automatically added to only retrieve employees for the current User's company.
  • Temporal: Projects and their membership have a start and end date so by default the current structure of the projects. Additionally an AS-OF time can be provided within an EntityManager that will cause additional criteria to be added to the Project and Member queries to limit the results to just those applicable in the specified time.

Domain Model

Eclipselink.example.jpa.employee.jpg

Back to the top