How to define two persistence units (one for production, one for unit testing)?

后端 未结 4 993
一整个雨季
一整个雨季 2020-12-31 14:25

This is my stateless bean:

@Stateless
public class Finder {
  @PersistenceContext(unitName = \"production\")
  EntityManager em;
  [...]
}

4条回答
提交回复
热议问题