[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [eclipselink-users] crossing entity managers?
- From: "Tim Hollosy" <hollosyt@xxxxxxxxx>
- Date: Wed, 8 Oct 2008 07:37:33 -0400
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EMw66Vie3QoMxWPVpGq4nbBLuJzpDrh221lDNO/bU6AvjK/Ro5VRf7fO1ZrIaZK3aZ 3BDrahGgahnQzVQl8LiMmIfe142UhQn1/vXkwEkrJIQ+kx1LMquAYqG5yZQC8CbXEA+I B+AU4f84Pg1VV3rTkPmh+5PhkZuJYcNpRVfE0=
I'm not following - are you using multiple persistence.xml's?
Or do you just have a few DAO classes that all use @PersitenceContext?
If it's the latter, that's the normal usage as I understand so how are
you coming to the conclusion that some classes can't make certain
queries because they don't have the "right" EntityManager?
Perhaps you're running into the problem that you're trying to work
with unmanaged Entities?
On Tue, Oct 7, 2008 at 9:21 AM, natjohns <natjohns@xxxxxxxxxxx> wrote:
> Hi all,
> I've got multiple spring files wiring up sets of entities. They each use the
> auto-injection of Persistence Contexts like this:
> Now I am running into the problem that some classes can not make certain
> queries because they don't have the right entity manager. Is there an easy
> way to combine all entity managers and have a single point that knows about
> all entities?
> eclipselink-users mailing list