You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by robertgass <ro...@gmail.com> on 2014/06/25 02:15:15 UTC

Re: openjpa2.2 cannot enhance multiple persistence-unit?

Anyone find the solution to this yet?



--
View this message in context: http://openjpa.208410.n2.nabble.com/openjpa2-2-cannot-enhance-multiple-persistence-unit-tp7582993p7586879.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: openjpa2.2 cannot enhance multiple persistence-unit?

Posted by gembin <ge...@gmail.com>.
As Rick said,  those information (persistence.xml and ant enhance task etc.)
are described on the first thread.

It's definitely build time, and nothing related to the deployment or what
kind of a application.
It's not time to run it yet..., because entities have been enhanced.



--
View this message in context: http://openjpa.208410.n2.nabble.com/openjpa2-2-cannot-enhance-multiple-persistence-unit-tp7582993p7586894.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: openjpa2.2 cannot enhance multiple persistence-unit?

Posted by Rick Curtis <cu...@gmail.com>.
Click on the nabble post from the first email on this thread... it looks
like they are reporting a problem with the OpenJPA ant enhancer task.


On Thu, Jun 26, 2014 at 11:45 AM, Kevin Sutter <kw...@gmail.com> wrote:

> >  The issue described is not clear enough?
>
> Ahhh, no...  Especially when Jose replies with this...
>
> >  Yes im using that exactly situtation, and i could enhance multiple
> persistence unit.
>
> So, something is not consistent.  You haven't described your persistence
> unit definitions (persistence.xml).  You haven't described your enhancement
> process -- dynamic or build time.  Are you running within an application
> server, or as a standalone Java SE application?  There are many variables
> that can affect the entity enhancement processing.
>
> Kevin
>
>
> On Thu, Jun 26, 2014 at 11:05 AM, gembin <ge...@gmail.com> wrote:
>
> >
> > The issue described is not clear enough?
> >
> > only classes in unit1 are enhanced, none is enhanced in unit2
> >
> > Enhanced
> > org.example.Entity1
> >
> > **NOT Enhanced**
> > org.example.Entity2
> >
> >
> > Kevin Sutter wrote
> > > I don't think there ever was consensus that a problem existed...  What
> > > exact scenario is not working with 2.2.0?
> > >
> > >
> > > On Tue, Jun 24, 2014 at 7:15 PM, robertgass &lt;
> >
> > > robertgass@
> >
> > > &gt; wrote:
> > >
> > >> Anyone find the solution to this yet?
> > >>
> > >>
> > >>
> > >> --
> > >> View this message in context:
> > >>
> >
> http://openjpa.208410.n2.nabble.com/openjpa2-2-cannot-enhance-multiple-persistence-unit-tp7582993p7586879.html
> > >> Sent from the OpenJPA Users mailing list archive at Nabble.com.
> > >>
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://openjpa.208410.n2.nabble.com/openjpa2-2-cannot-enhance-multiple-persistence-unit-tp7582993p7586884.html
> > Sent from the OpenJPA Users mailing list archive at Nabble.com.
> >
>



-- 
*Rick Curtis*

Re: openjpa2.2 cannot enhance multiple persistence-unit?

Posted by Kevin Sutter <kw...@gmail.com>.
>  The issue described is not clear enough?

Ahhh, no...  Especially when Jose replies with this...

>  Yes im using that exactly situtation, and i could enhance multiple
persistence unit.

So, something is not consistent.  You haven't described your persistence
unit definitions (persistence.xml).  You haven't described your enhancement
process -- dynamic or build time.  Are you running within an application
server, or as a standalone Java SE application?  There are many variables
that can affect the entity enhancement processing.

Kevin


On Thu, Jun 26, 2014 at 11:05 AM, gembin <ge...@gmail.com> wrote:

>
> The issue described is not clear enough?
>
> only classes in unit1 are enhanced, none is enhanced in unit2
>
> Enhanced
> org.example.Entity1
>
> **NOT Enhanced**
> org.example.Entity2
>
>
> Kevin Sutter wrote
> > I don't think there ever was consensus that a problem existed...  What
> > exact scenario is not working with 2.2.0?
> >
> >
> > On Tue, Jun 24, 2014 at 7:15 PM, robertgass &lt;
>
> > robertgass@
>
> > &gt; wrote:
> >
> >> Anyone find the solution to this yet?
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://openjpa.208410.n2.nabble.com/openjpa2-2-cannot-enhance-multiple-persistence-unit-tp7582993p7586879.html
> >> Sent from the OpenJPA Users mailing list archive at Nabble.com.
> >>
>
>
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/openjpa2-2-cannot-enhance-multiple-persistence-unit-tp7582993p7586884.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>

Re: openjpa2.2 cannot enhance multiple persistence-unit?

Posted by gembin <ge...@gmail.com>.
The issue described is not clear enough?

only classes in unit1 are enhanced, none is enhanced in unit2

Enhanced 
org.example.Entity1

**NOT Enhanced**
org.example.Entity2


Kevin Sutter wrote
> I don't think there ever was consensus that a problem existed...  What
> exact scenario is not working with 2.2.0?
> 
> 
> On Tue, Jun 24, 2014 at 7:15 PM, robertgass &lt;

> robertgass@

> &gt; wrote:
> 
>> Anyone find the solution to this yet?
>>
>>
>>
>> --
>> View this message in context:
>> http://openjpa.208410.n2.nabble.com/openjpa2-2-cannot-enhance-multiple-persistence-unit-tp7582993p7586879.html
>> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>>





--
View this message in context: http://openjpa.208410.n2.nabble.com/openjpa2-2-cannot-enhance-multiple-persistence-unit-tp7582993p7586884.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: openjpa2.2 cannot enhance multiple persistence-unit?

Posted by Hal Hildebrand <ha...@me.com>.
Not entirely sure, but this seems to be the exact problem I’m experiencing as well:

http://openjpa.208410.n2.nabble.com/Enhancement-not-finding-metadata-Maven-plugin-td7586850.html

I use annotations, a persistence.xml, and several ormorm files (included in the persistence.xml) that shadow annotated classes and add queries.

On Jun 25, 2014, at 10:54 AM, Kevin Sutter <kw...@gmail.com> wrote:

> I don't think there ever was consensus that a problem existed...  What
> exact scenario is not working with 2.2.0?
> 
> 
> On Tue, Jun 24, 2014 at 7:15 PM, robertgass <ro...@gmail.com> wrote:
> 
>> Anyone find the solution to this yet?
>> 
>> 
>> 
>> --
>> View this message in context:
>> http://openjpa.208410.n2.nabble.com/openjpa2-2-cannot-enhance-multiple-persistence-unit-tp7582993p7586879.html
>> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>> 


Re: openjpa2.2 cannot enhance multiple persistence-unit?

Posted by Kevin Sutter <kw...@gmail.com>.
I don't think there ever was consensus that a problem existed...  What
exact scenario is not working with 2.2.0?


On Tue, Jun 24, 2014 at 7:15 PM, robertgass <ro...@gmail.com> wrote:

> Anyone find the solution to this yet?
>
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/openjpa2-2-cannot-enhance-multiple-persistence-unit-tp7582993p7586879.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>