FAQ
Hi,

In my application, I have two persistence contexts for the same persistence
unit, one for JPA, the other for Hibernate :

/**
* Inject persistence context t4Seam
*/
@javax.persistence.PersistenceContext(unitName = "t4Seam")
protected javax.persistence.EntityManager emanager;

/**
* Inject Hibernate Session
*/
@javax.persistence.PersistenceContext(unitName = "t4Seam")
protected org.hibernate.Session hibernateSession;

It used to work with JBoss. But with OpenEJB, I have the following error:
"Use of @PersistenceContext only applies to EntityManager references"

Is it intented or is it a bug ?

Olivier
--
View this message in context: http://www.nabble.com/PersistenceContext-and-Hibernate-session-tp18404318p18404318.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 10 | next ›
Discussion Overview
groupusers @
categoriesopenejb
postedJul 11, '08 at 1:50p
activeJul 16, '08 at 3:28a
posts10
users4
websiteopenejb.apache.org
irc#openejb

People

Translate

site design / logo © 2021 Grokbase