Showing
1 changed file
with
4 additions
and
1 deletions
... | @@ -5,12 +5,15 @@ import javax.enterprise.inject.Produces; | ... | @@ -5,12 +5,15 @@ import javax.enterprise.inject.Produces; |
5 | import javax.persistence.EntityManager; | 5 | import javax.persistence.EntityManager; |
6 | import javax.persistence.PersistenceContext; | 6 | import javax.persistence.PersistenceContext; |
7 | 7 | ||
8 | - | 8 | +/* |
9 | + Classe de configutation JPA, utilisée par tous les JpaRepository. | ||
10 | + */ | ||
9 | public class JpaConfiguration { | 11 | public class JpaConfiguration { |
10 | 12 | ||
11 | @Produces | 13 | @Produces |
12 | @RequestScoped | 14 | @RequestScoped |
13 | @PersistenceContext(unitName = "development-pu") | 15 | @PersistenceContext(unitName = "development-pu") |
16 | + /* Interface injectable de gestion de la persistence */ | ||
14 | public EntityManager entityManager; | 17 | public EntityManager entityManager; |
15 | 18 | ||
16 | } | 19 | } | ... | ... |
-
Please register or login to post a comment