Is it possible to assign a specific DataSource to a @Repository?
DataSource
@Repository
I\'d like to create a test environment where in general I want to use the
Just set the name attribute of the @PersistenceContext annotation when declaring your EntityManager.
name
@PersistenceContext
EntityManager
@PersistenceContext(name="persistence-unit-name") private EntityManager em;