Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2017-02-07 11:50:27 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f1e215c672642dda2fd2c724528e51f2261e8a44
f1e215c6
1 parent
775aab68
Documentation.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/main/java/org/legrog/configuration/JpaConfiguration.java
src/main/java/org/legrog/configuration/JpaConfiguration.java
View file @
f1e215c
...
...
@@ -5,12 +5,15 @@ import javax.enterprise.inject.Produces;
import
javax.persistence.EntityManager
;
import
javax.persistence.PersistenceContext
;
/*
Classe de configutation JPA, utilisée par tous les JpaRepository.
*/
public
class
JpaConfiguration
{
@Produces
@RequestScoped
@PersistenceContext
(
unitName
=
"development-pu"
)
/* Interface injectable de gestion de la persistence */
public
EntityManager
entityManager
;
}
...
...
Please
register
or
login
to post a comment