|
|
|
org.hibernate.ejb.EntityManagerFactoryImpl
|
|||
|---|---|---|---|
|
#18+
Есть у кого пример, как получить EntityManager из org.hibernate.ejb.EntityManagerFactoryImpl ? Хочу в Unit тестах протестировать бины. В бинах EntityManager получают через @PersistenceContext(unitName = "db") private EntityManager em; В тесте хочу получить его у org.hibernate.ejb.EntityManagerFactoryImp и передать в бины, но не получается с TransactionFactory. ЗЫ ... или другое решение кто подскажет по тестированию. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.05.2012, 06:24:57 |
|
||
|
org.hibernate.ejb.EntityManagerFactoryImpl
|
|||
|---|---|---|---|
|
#18+
ответ найден ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.05.2012, 11:47:46 |
|
||
|
org.hibernate.ejb.EntityManagerFactoryImpl
|
|||
|---|---|---|---|
|
#18+
... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.05.2012, 12:05:09 |
|
||
|
org.hibernate.ejb.EntityManagerFactoryImpl
|
|||
|---|---|---|---|
|
#18+
12476259 вот в таком исполнении ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.05.2012, 12:09:20 |
|
||
|
|

start [/forum/topic.php?fid=59&tid=2131815]: |
0ms |
get settings: |
12ms |
get forum list: |
22ms |
check forum access: |
6ms |
check topic access: |
6ms |
track hit: |
52ms |
get topic data: |
17ms |
get forum data: |
4ms |
get page messages: |
61ms |
get tp. blocked users: |
2ms |
| others: | 338ms |
| total: | 520ms |

| 0 / 0 |
