You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Jean-Louis Monteiro <jl...@tomitribe.com> on 2021/05/25 13:11:43 UTC

Provider improvements for JPA TCK

Hi,

In order to pass TCK for TomEE, I had to patch OpenJPA to avoid side
effects with other providers such as EclipseLink for instance.

The change I made makes sense to be included in OpenJPA in my opinion.
But I'd like to gather some thoughts for this change

https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e

I can create a JIRA ticket and submit a PR to OpenJPA if you guys think it
makes sense.
In essence it prevents OpenJPA from doing something when a JPA provider is
explicitly specified.

It will only do something if no JPA provider is specified or if OpenJPA is
the JPA provider configured.

--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com

Re: Provider improvements for JPA TCK

Posted by Jean-Louis Monteiro <jl...@tomitribe.com>.
No good to me
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Thu, May 27, 2021 at 9:11 PM Romain Manni-Bucau <rm...@gmail.com>
wrote:

> It is because of the network setup of Gh action, looks mergeable for me.
> Any objection?
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> Le jeu. 27 mai 2021 à 20:23, Jean-Louis Monteiro <jlmonteiro@tomitribe.com
> >
> a écrit :
>
> > Seems to be failing on Kubernetes
> >
> > https://github.com/apache/openjpa/pull/80
> > See details for CI
> > --
> > Jean-Louis Monteiro
> > http://twitter.com/jlouismonteiro
> > http://www.tomitribe.com
> >
> >
> > On Thu, May 27, 2021 at 3:27 PM Jean-Louis Monteiro <
> > jlmonteiro@tomitribe.com> wrote:
> >
> > > Should be green now.
> > >
> > > mvn test -pl openjpa-persistence-jdbc
> > > -Dtest=TestPersistenceProviderFilteringTestCase
> > >
> > > [INFO] -------------------------------------------------------
> > > [INFO]  T E S T S
> > > [INFO] -------------------------------------------------------
> > > [INFO] Running
> > >
> >
> org.apache.openjpa.persistence.test.TestPersistenceProviderFilteringTestCase
> > > [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> > > 0.47 s - in
> > >
> >
> org.apache.openjpa.persistence.test.TestPersistenceProviderFilteringTestCase
> > > [INFO]
> > > [INFO] Results:
> > > [INFO]
> > > [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
> > > --
> > > Jean-Louis Monteiro
> > > http://twitter.com/jlouismonteiro
> > > http://www.tomitribe.com
> > >
> > >
> > > On Wed, May 26, 2021 at 6:32 PM Romain Manni-Bucau <
> > rmannibucau@gmail.com>
> > > wrote:
> > >
> > >> Looks overall good for me once your test will pass.
> > >> I suspect it can be due to the persistence API we use but didn't take
> > time
> > >> to checkout it locally.
> > >> Let me know if I you struggle with it, i'll try to find some time to
> do
> > >> it.
> > >>
> > >> Romain Manni-Bucau
> > >> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > >> <https://rmannibucau.metawerx.net/> | Old Blog
> > >> <http://rmannibucau.wordpress.com> | Github <
> > >> https://github.com/rmannibucau> |
> > >> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > >> <
> > >>
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >> >
> > >>
> > >>
> > >> Le mer. 26 mai 2021 à 17:55, Jean-Louis Monteiro <
> > >> jlmonteiro@tomitribe.com>
> > >> a écrit :
> > >>
> > >> > Created the small PR with a very simplistic test.
> > >> > https://github.com/apache/openjpa/pull/80
> > >> >
> > >> > Looks like 2 methods are failing. Do you have some ideas?
> > >> >
> > >> > --
> > >> > Jean-Louis Monteiro
> > >> > http://twitter.com/jlouismonteiro
> > >> > http://www.tomitribe.com
> > >> >
> > >> >
> > >> > On Tue, May 25, 2021 at 5:37 PM Jean-Louis Monteiro <
> > >> > jlmonteiro@tomitribe.com> wrote:
> > >> >
> > >> > > Awesome. Thanks Romain
> > >> > >
> > >> > > --
> > >> > > Jean-Louis Monteiro
> > >> > > http://twitter.com/jlouismonteiro
> > >> > > http://www.tomitribe.com
> > >> > >
> > >> > >
> > >> > > On Tue, May 25, 2021 at 4:20 PM Romain Manni-Bucau <
> > >> > rmannibucau@gmail.com>
> > >> > > wrote:
> > >> > >
> > >> > >> Le mar. 25 mai 2021 à 15:41, Jean-Louis Monteiro <
> > >> > >> jlmonteiro@tomitribe.com>
> > >> > >> a écrit :
> > >> > >>
> > >> > >> > I'll create a ticket then and checkout master to contribute it.
> > >> > >> > We can discuss after how I can help in the jakarka version of
> it
> > >> > >> >
> > >> > >>
> > >> > >> While a string which ends up in the constant pool the relocation
> we
> > >> have
> > >> > >> in
> > >> > >> place should do it for you, just needs to ensure it worked to
> avoid
> > >> > >> surprises but I don't expect any action except "validation" one.
> > >> > >>
> > >> > >>
> > >> > >> > --
> > >> > >> > Jean-Louis Monteiro
> > >> > >> > http://twitter.com/jlouismonteiro
> > >> > >> > http://www.tomitribe.com
> > >> > >> >
> > >> > >> >
> > >> > >> > On Tue, May 25, 2021 at 3:21 PM Romain Manni-Bucau <
> > >> > >> rmannibucau@gmail.com>
> > >> > >> > wrote:
> > >> > >> >
> > >> > >> > > Hi JL,
> > >> > >> > >
> > >> > >> > > Looks accurate to me done with javax on master (and likely
> > >> properly
> > >> > >> > > rewritten in our relocation/jakarta artifact).
> > >> > >> > >
> > >> > >> > > Romain Manni-Bucau
> > >> > >> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > >> > >> > > <https://rmannibucau.metawerx.net/> | Old Blog
> > >> > >> > > <http://rmannibucau.wordpress.com> | Github <
> > >> > >> > > https://github.com/rmannibucau> |
> > >> > >> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > >> > >> > > <
> > >> > >> > >
> > >> > >> >
> > >> > >>
> > >> >
> > >>
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >> > >> > > >
> > >> > >> > >
> > >> > >> > >
> > >> > >> > > Le mar. 25 mai 2021 à 15:12, Jean-Louis Monteiro <
> > >> > >> > jlmonteiro@tomitribe.com
> > >> > >> > > >
> > >> > >> > > a écrit :
> > >> > >> > >
> > >> > >> > > > Hi,
> > >> > >> > > >
> > >> > >> > > > In order to pass TCK for TomEE, I had to patch OpenJPA to
> > avoid
> > >> > side
> > >> > >> > > > effects with other providers such as EclipseLink for
> > instance.
> > >> > >> > > >
> > >> > >> > > > The change I made makes sense to be included in OpenJPA in
> my
> > >> > >> opinion.
> > >> > >> > > > But I'd like to gather some thoughts for this change
> > >> > >> > > >
> > >> > >> > > >
> > >> > >> > > >
> > >> > >> > >
> > >> > >> >
> > >> > >>
> > >> >
> > >>
> >
> https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e
> > >> > >> > > >
> > >> > >> > > > I can create a JIRA ticket and submit a PR to OpenJPA if
> you
> > >> guys
> > >> > >> think
> > >> > >> > > it
> > >> > >> > > > makes sense.
> > >> > >> > > > In essence it prevents OpenJPA from doing something when a
> > JPA
> > >> > >> provider
> > >> > >> > > is
> > >> > >> > > > explicitly specified.
> > >> > >> > > >
> > >> > >> > > > It will only do something if no JPA provider is specified
> or
> > if
> > >> > >> OpenJPA
> > >> > >> > > is
> > >> > >> > > > the JPA provider configured.
> > >> > >> > > >
> > >> > >> > > > --
> > >> > >> > > > Jean-Louis Monteiro
> > >> > >> > > > http://twitter.com/jlouismonteiro
> > >> > >> > > > http://www.tomitribe.com
> > >> > >> > > >
> > >> > >> > >
> > >> > >> >
> > >> > >>
> > >> > >
> > >> >
> > >>
> > >
> >
>

Re: Provider improvements for JPA TCK

Posted by Romain Manni-Bucau <rm...@gmail.com>.
It is because of the network setup of Gh action, looks mergeable for me.
Any objection?

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le jeu. 27 mai 2021 à 20:23, Jean-Louis Monteiro <jl...@tomitribe.com>
a écrit :

> Seems to be failing on Kubernetes
>
> https://github.com/apache/openjpa/pull/80
> See details for CI
> --
> Jean-Louis Monteiro
> http://twitter.com/jlouismonteiro
> http://www.tomitribe.com
>
>
> On Thu, May 27, 2021 at 3:27 PM Jean-Louis Monteiro <
> jlmonteiro@tomitribe.com> wrote:
>
> > Should be green now.
> >
> > mvn test -pl openjpa-persistence-jdbc
> > -Dtest=TestPersistenceProviderFilteringTestCase
> >
> > [INFO] -------------------------------------------------------
> > [INFO]  T E S T S
> > [INFO] -------------------------------------------------------
> > [INFO] Running
> >
> org.apache.openjpa.persistence.test.TestPersistenceProviderFilteringTestCase
> > [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> > 0.47 s - in
> >
> org.apache.openjpa.persistence.test.TestPersistenceProviderFilteringTestCase
> > [INFO]
> > [INFO] Results:
> > [INFO]
> > [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
> > --
> > Jean-Louis Monteiro
> > http://twitter.com/jlouismonteiro
> > http://www.tomitribe.com
> >
> >
> > On Wed, May 26, 2021 at 6:32 PM Romain Manni-Bucau <
> rmannibucau@gmail.com>
> > wrote:
> >
> >> Looks overall good for me once your test will pass.
> >> I suspect it can be due to the persistence API we use but didn't take
> time
> >> to checkout it locally.
> >> Let me know if I you struggle with it, i'll try to find some time to do
> >> it.
> >>
> >> Romain Manni-Bucau
> >> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> >> <https://rmannibucau.metawerx.net/> | Old Blog
> >> <http://rmannibucau.wordpress.com> | Github <
> >> https://github.com/rmannibucau> |
> >> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> >> <
> >>
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >> >
> >>
> >>
> >> Le mer. 26 mai 2021 à 17:55, Jean-Louis Monteiro <
> >> jlmonteiro@tomitribe.com>
> >> a écrit :
> >>
> >> > Created the small PR with a very simplistic test.
> >> > https://github.com/apache/openjpa/pull/80
> >> >
> >> > Looks like 2 methods are failing. Do you have some ideas?
> >> >
> >> > --
> >> > Jean-Louis Monteiro
> >> > http://twitter.com/jlouismonteiro
> >> > http://www.tomitribe.com
> >> >
> >> >
> >> > On Tue, May 25, 2021 at 5:37 PM Jean-Louis Monteiro <
> >> > jlmonteiro@tomitribe.com> wrote:
> >> >
> >> > > Awesome. Thanks Romain
> >> > >
> >> > > --
> >> > > Jean-Louis Monteiro
> >> > > http://twitter.com/jlouismonteiro
> >> > > http://www.tomitribe.com
> >> > >
> >> > >
> >> > > On Tue, May 25, 2021 at 4:20 PM Romain Manni-Bucau <
> >> > rmannibucau@gmail.com>
> >> > > wrote:
> >> > >
> >> > >> Le mar. 25 mai 2021 à 15:41, Jean-Louis Monteiro <
> >> > >> jlmonteiro@tomitribe.com>
> >> > >> a écrit :
> >> > >>
> >> > >> > I'll create a ticket then and checkout master to contribute it.
> >> > >> > We can discuss after how I can help in the jakarka version of it
> >> > >> >
> >> > >>
> >> > >> While a string which ends up in the constant pool the relocation we
> >> have
> >> > >> in
> >> > >> place should do it for you, just needs to ensure it worked to avoid
> >> > >> surprises but I don't expect any action except "validation" one.
> >> > >>
> >> > >>
> >> > >> > --
> >> > >> > Jean-Louis Monteiro
> >> > >> > http://twitter.com/jlouismonteiro
> >> > >> > http://www.tomitribe.com
> >> > >> >
> >> > >> >
> >> > >> > On Tue, May 25, 2021 at 3:21 PM Romain Manni-Bucau <
> >> > >> rmannibucau@gmail.com>
> >> > >> > wrote:
> >> > >> >
> >> > >> > > Hi JL,
> >> > >> > >
> >> > >> > > Looks accurate to me done with javax on master (and likely
> >> properly
> >> > >> > > rewritten in our relocation/jakarta artifact).
> >> > >> > >
> >> > >> > > Romain Manni-Bucau
> >> > >> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> >> > >> > > <https://rmannibucau.metawerx.net/> | Old Blog
> >> > >> > > <http://rmannibucau.wordpress.com> | Github <
> >> > >> > > https://github.com/rmannibucau> |
> >> > >> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> >> > >> > > <
> >> > >> > >
> >> > >> >
> >> > >>
> >> >
> >>
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >> > >> > > >
> >> > >> > >
> >> > >> > >
> >> > >> > > Le mar. 25 mai 2021 à 15:12, Jean-Louis Monteiro <
> >> > >> > jlmonteiro@tomitribe.com
> >> > >> > > >
> >> > >> > > a écrit :
> >> > >> > >
> >> > >> > > > Hi,
> >> > >> > > >
> >> > >> > > > In order to pass TCK for TomEE, I had to patch OpenJPA to
> avoid
> >> > side
> >> > >> > > > effects with other providers such as EclipseLink for
> instance.
> >> > >> > > >
> >> > >> > > > The change I made makes sense to be included in OpenJPA in my
> >> > >> opinion.
> >> > >> > > > But I'd like to gather some thoughts for this change
> >> > >> > > >
> >> > >> > > >
> >> > >> > > >
> >> > >> > >
> >> > >> >
> >> > >>
> >> >
> >>
> https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e
> >> > >> > > >
> >> > >> > > > I can create a JIRA ticket and submit a PR to OpenJPA if you
> >> guys
> >> > >> think
> >> > >> > > it
> >> > >> > > > makes sense.
> >> > >> > > > In essence it prevents OpenJPA from doing something when a
> JPA
> >> > >> provider
> >> > >> > > is
> >> > >> > > > explicitly specified.
> >> > >> > > >
> >> > >> > > > It will only do something if no JPA provider is specified or
> if
> >> > >> OpenJPA
> >> > >> > > is
> >> > >> > > > the JPA provider configured.
> >> > >> > > >
> >> > >> > > > --
> >> > >> > > > Jean-Louis Monteiro
> >> > >> > > > http://twitter.com/jlouismonteiro
> >> > >> > > > http://www.tomitribe.com
> >> > >> > > >
> >> > >> > >
> >> > >> >
> >> > >>
> >> > >
> >> >
> >>
> >
>

Re: Provider improvements for JPA TCK

Posted by Jean-Louis Monteiro <jl...@tomitribe.com>.
Seems to be failing on Kubernetes

https://github.com/apache/openjpa/pull/80
See details for CI
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Thu, May 27, 2021 at 3:27 PM Jean-Louis Monteiro <
jlmonteiro@tomitribe.com> wrote:

> Should be green now.
>
> mvn test -pl openjpa-persistence-jdbc
> -Dtest=TestPersistenceProviderFilteringTestCase
>
> [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running
> org.apache.openjpa.persistence.test.TestPersistenceProviderFilteringTestCase
> [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 0.47 s - in
> org.apache.openjpa.persistence.test.TestPersistenceProviderFilteringTestCase
> [INFO]
> [INFO] Results:
> [INFO]
> [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
> --
> Jean-Louis Monteiro
> http://twitter.com/jlouismonteiro
> http://www.tomitribe.com
>
>
> On Wed, May 26, 2021 at 6:32 PM Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
>> Looks overall good for me once your test will pass.
>> I suspect it can be due to the persistence API we use but didn't take time
>> to checkout it locally.
>> Let me know if I you struggle with it, i'll try to find some time to do
>> it.
>>
>> Romain Manni-Bucau
>> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
>> <https://rmannibucau.metawerx.net/> | Old Blog
>> <http://rmannibucau.wordpress.com> | Github <
>> https://github.com/rmannibucau> |
>> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
>> <
>> https://www.packtpub.com/application-development/java-ee-8-high-performance
>> >
>>
>>
>> Le mer. 26 mai 2021 à 17:55, Jean-Louis Monteiro <
>> jlmonteiro@tomitribe.com>
>> a écrit :
>>
>> > Created the small PR with a very simplistic test.
>> > https://github.com/apache/openjpa/pull/80
>> >
>> > Looks like 2 methods are failing. Do you have some ideas?
>> >
>> > --
>> > Jean-Louis Monteiro
>> > http://twitter.com/jlouismonteiro
>> > http://www.tomitribe.com
>> >
>> >
>> > On Tue, May 25, 2021 at 5:37 PM Jean-Louis Monteiro <
>> > jlmonteiro@tomitribe.com> wrote:
>> >
>> > > Awesome. Thanks Romain
>> > >
>> > > --
>> > > Jean-Louis Monteiro
>> > > http://twitter.com/jlouismonteiro
>> > > http://www.tomitribe.com
>> > >
>> > >
>> > > On Tue, May 25, 2021 at 4:20 PM Romain Manni-Bucau <
>> > rmannibucau@gmail.com>
>> > > wrote:
>> > >
>> > >> Le mar. 25 mai 2021 à 15:41, Jean-Louis Monteiro <
>> > >> jlmonteiro@tomitribe.com>
>> > >> a écrit :
>> > >>
>> > >> > I'll create a ticket then and checkout master to contribute it.
>> > >> > We can discuss after how I can help in the jakarka version of it
>> > >> >
>> > >>
>> > >> While a string which ends up in the constant pool the relocation we
>> have
>> > >> in
>> > >> place should do it for you, just needs to ensure it worked to avoid
>> > >> surprises but I don't expect any action except "validation" one.
>> > >>
>> > >>
>> > >> > --
>> > >> > Jean-Louis Monteiro
>> > >> > http://twitter.com/jlouismonteiro
>> > >> > http://www.tomitribe.com
>> > >> >
>> > >> >
>> > >> > On Tue, May 25, 2021 at 3:21 PM Romain Manni-Bucau <
>> > >> rmannibucau@gmail.com>
>> > >> > wrote:
>> > >> >
>> > >> > > Hi JL,
>> > >> > >
>> > >> > > Looks accurate to me done with javax on master (and likely
>> properly
>> > >> > > rewritten in our relocation/jakarta artifact).
>> > >> > >
>> > >> > > Romain Manni-Bucau
>> > >> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
>> > >> > > <https://rmannibucau.metawerx.net/> | Old Blog
>> > >> > > <http://rmannibucau.wordpress.com> | Github <
>> > >> > > https://github.com/rmannibucau> |
>> > >> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
>> > >> > > <
>> > >> > >
>> > >> >
>> > >>
>> >
>> https://www.packtpub.com/application-development/java-ee-8-high-performance
>> > >> > > >
>> > >> > >
>> > >> > >
>> > >> > > Le mar. 25 mai 2021 à 15:12, Jean-Louis Monteiro <
>> > >> > jlmonteiro@tomitribe.com
>> > >> > > >
>> > >> > > a écrit :
>> > >> > >
>> > >> > > > Hi,
>> > >> > > >
>> > >> > > > In order to pass TCK for TomEE, I had to patch OpenJPA to avoid
>> > side
>> > >> > > > effects with other providers such as EclipseLink for instance.
>> > >> > > >
>> > >> > > > The change I made makes sense to be included in OpenJPA in my
>> > >> opinion.
>> > >> > > > But I'd like to gather some thoughts for this change
>> > >> > > >
>> > >> > > >
>> > >> > > >
>> > >> > >
>> > >> >
>> > >>
>> >
>> https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e
>> > >> > > >
>> > >> > > > I can create a JIRA ticket and submit a PR to OpenJPA if you
>> guys
>> > >> think
>> > >> > > it
>> > >> > > > makes sense.
>> > >> > > > In essence it prevents OpenJPA from doing something when a JPA
>> > >> provider
>> > >> > > is
>> > >> > > > explicitly specified.
>> > >> > > >
>> > >> > > > It will only do something if no JPA provider is specified or if
>> > >> OpenJPA
>> > >> > > is
>> > >> > > > the JPA provider configured.
>> > >> > > >
>> > >> > > > --
>> > >> > > > Jean-Louis Monteiro
>> > >> > > > http://twitter.com/jlouismonteiro
>> > >> > > > http://www.tomitribe.com
>> > >> > > >
>> > >> > >
>> > >> >
>> > >>
>> > >
>> >
>>
>

Re: Provider improvements for JPA TCK

Posted by Jean-Louis Monteiro <jl...@tomitribe.com>.
Should be green now.

mvn test -pl openjpa-persistence-jdbc
-Dtest=TestPersistenceProviderFilteringTestCase

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running
org.apache.openjpa.persistence.test.TestPersistenceProviderFilteringTestCase
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.47
s - in
org.apache.openjpa.persistence.test.TestPersistenceProviderFilteringTestCase
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Wed, May 26, 2021 at 6:32 PM Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Looks overall good for me once your test will pass.
> I suspect it can be due to the persistence API we use but didn't take time
> to checkout it locally.
> Let me know if I you struggle with it, i'll try to find some time to do it.
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> Le mer. 26 mai 2021 à 17:55, Jean-Louis Monteiro <jlmonteiro@tomitribe.com
> >
> a écrit :
>
> > Created the small PR with a very simplistic test.
> > https://github.com/apache/openjpa/pull/80
> >
> > Looks like 2 methods are failing. Do you have some ideas?
> >
> > --
> > Jean-Louis Monteiro
> > http://twitter.com/jlouismonteiro
> > http://www.tomitribe.com
> >
> >
> > On Tue, May 25, 2021 at 5:37 PM Jean-Louis Monteiro <
> > jlmonteiro@tomitribe.com> wrote:
> >
> > > Awesome. Thanks Romain
> > >
> > > --
> > > Jean-Louis Monteiro
> > > http://twitter.com/jlouismonteiro
> > > http://www.tomitribe.com
> > >
> > >
> > > On Tue, May 25, 2021 at 4:20 PM Romain Manni-Bucau <
> > rmannibucau@gmail.com>
> > > wrote:
> > >
> > >> Le mar. 25 mai 2021 à 15:41, Jean-Louis Monteiro <
> > >> jlmonteiro@tomitribe.com>
> > >> a écrit :
> > >>
> > >> > I'll create a ticket then and checkout master to contribute it.
> > >> > We can discuss after how I can help in the jakarka version of it
> > >> >
> > >>
> > >> While a string which ends up in the constant pool the relocation we
> have
> > >> in
> > >> place should do it for you, just needs to ensure it worked to avoid
> > >> surprises but I don't expect any action except "validation" one.
> > >>
> > >>
> > >> > --
> > >> > Jean-Louis Monteiro
> > >> > http://twitter.com/jlouismonteiro
> > >> > http://www.tomitribe.com
> > >> >
> > >> >
> > >> > On Tue, May 25, 2021 at 3:21 PM Romain Manni-Bucau <
> > >> rmannibucau@gmail.com>
> > >> > wrote:
> > >> >
> > >> > > Hi JL,
> > >> > >
> > >> > > Looks accurate to me done with javax on master (and likely
> properly
> > >> > > rewritten in our relocation/jakarta artifact).
> > >> > >
> > >> > > Romain Manni-Bucau
> > >> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > >> > > <https://rmannibucau.metawerx.net/> | Old Blog
> > >> > > <http://rmannibucau.wordpress.com> | Github <
> > >> > > https://github.com/rmannibucau> |
> > >> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > >> > > <
> > >> > >
> > >> >
> > >>
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >> > > >
> > >> > >
> > >> > >
> > >> > > Le mar. 25 mai 2021 à 15:12, Jean-Louis Monteiro <
> > >> > jlmonteiro@tomitribe.com
> > >> > > >
> > >> > > a écrit :
> > >> > >
> > >> > > > Hi,
> > >> > > >
> > >> > > > In order to pass TCK for TomEE, I had to patch OpenJPA to avoid
> > side
> > >> > > > effects with other providers such as EclipseLink for instance.
> > >> > > >
> > >> > > > The change I made makes sense to be included in OpenJPA in my
> > >> opinion.
> > >> > > > But I'd like to gather some thoughts for this change
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e
> > >> > > >
> > >> > > > I can create a JIRA ticket and submit a PR to OpenJPA if you
> guys
> > >> think
> > >> > > it
> > >> > > > makes sense.
> > >> > > > In essence it prevents OpenJPA from doing something when a JPA
> > >> provider
> > >> > > is
> > >> > > > explicitly specified.
> > >> > > >
> > >> > > > It will only do something if no JPA provider is specified or if
> > >> OpenJPA
> > >> > > is
> > >> > > > the JPA provider configured.
> > >> > > >
> > >> > > > --
> > >> > > > Jean-Louis Monteiro
> > >> > > > http://twitter.com/jlouismonteiro
> > >> > > > http://www.tomitribe.com
> > >> > > >
> > >> > >
> > >> >
> > >>
> > >
> >
>

Re: Provider improvements for JPA TCK

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Looks overall good for me once your test will pass.
I suspect it can be due to the persistence API we use but didn't take time
to checkout it locally.
Let me know if I you struggle with it, i'll try to find some time to do it.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le mer. 26 mai 2021 à 17:55, Jean-Louis Monteiro <jl...@tomitribe.com>
a écrit :

> Created the small PR with a very simplistic test.
> https://github.com/apache/openjpa/pull/80
>
> Looks like 2 methods are failing. Do you have some ideas?
>
> --
> Jean-Louis Monteiro
> http://twitter.com/jlouismonteiro
> http://www.tomitribe.com
>
>
> On Tue, May 25, 2021 at 5:37 PM Jean-Louis Monteiro <
> jlmonteiro@tomitribe.com> wrote:
>
> > Awesome. Thanks Romain
> >
> > --
> > Jean-Louis Monteiro
> > http://twitter.com/jlouismonteiro
> > http://www.tomitribe.com
> >
> >
> > On Tue, May 25, 2021 at 4:20 PM Romain Manni-Bucau <
> rmannibucau@gmail.com>
> > wrote:
> >
> >> Le mar. 25 mai 2021 à 15:41, Jean-Louis Monteiro <
> >> jlmonteiro@tomitribe.com>
> >> a écrit :
> >>
> >> > I'll create a ticket then and checkout master to contribute it.
> >> > We can discuss after how I can help in the jakarka version of it
> >> >
> >>
> >> While a string which ends up in the constant pool the relocation we have
> >> in
> >> place should do it for you, just needs to ensure it worked to avoid
> >> surprises but I don't expect any action except "validation" one.
> >>
> >>
> >> > --
> >> > Jean-Louis Monteiro
> >> > http://twitter.com/jlouismonteiro
> >> > http://www.tomitribe.com
> >> >
> >> >
> >> > On Tue, May 25, 2021 at 3:21 PM Romain Manni-Bucau <
> >> rmannibucau@gmail.com>
> >> > wrote:
> >> >
> >> > > Hi JL,
> >> > >
> >> > > Looks accurate to me done with javax on master (and likely properly
> >> > > rewritten in our relocation/jakarta artifact).
> >> > >
> >> > > Romain Manni-Bucau
> >> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> >> > > <https://rmannibucau.metawerx.net/> | Old Blog
> >> > > <http://rmannibucau.wordpress.com> | Github <
> >> > > https://github.com/rmannibucau> |
> >> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> >> > > <
> >> > >
> >> >
> >>
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >> > > >
> >> > >
> >> > >
> >> > > Le mar. 25 mai 2021 à 15:12, Jean-Louis Monteiro <
> >> > jlmonteiro@tomitribe.com
> >> > > >
> >> > > a écrit :
> >> > >
> >> > > > Hi,
> >> > > >
> >> > > > In order to pass TCK for TomEE, I had to patch OpenJPA to avoid
> side
> >> > > > effects with other providers such as EclipseLink for instance.
> >> > > >
> >> > > > The change I made makes sense to be included in OpenJPA in my
> >> opinion.
> >> > > > But I'd like to gather some thoughts for this change
> >> > > >
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e
> >> > > >
> >> > > > I can create a JIRA ticket and submit a PR to OpenJPA if you guys
> >> think
> >> > > it
> >> > > > makes sense.
> >> > > > In essence it prevents OpenJPA from doing something when a JPA
> >> provider
> >> > > is
> >> > > > explicitly specified.
> >> > > >
> >> > > > It will only do something if no JPA provider is specified or if
> >> OpenJPA
> >> > > is
> >> > > > the JPA provider configured.
> >> > > >
> >> > > > --
> >> > > > Jean-Louis Monteiro
> >> > > > http://twitter.com/jlouismonteiro
> >> > > > http://www.tomitribe.com
> >> > > >
> >> > >
> >> >
> >>
> >
>

Re: Provider improvements for JPA TCK

Posted by Jean-Louis Monteiro <jl...@tomitribe.com>.
Created the small PR with a very simplistic test.
https://github.com/apache/openjpa/pull/80

Looks like 2 methods are failing. Do you have some ideas?

--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Tue, May 25, 2021 at 5:37 PM Jean-Louis Monteiro <
jlmonteiro@tomitribe.com> wrote:

> Awesome. Thanks Romain
>
> --
> Jean-Louis Monteiro
> http://twitter.com/jlouismonteiro
> http://www.tomitribe.com
>
>
> On Tue, May 25, 2021 at 4:20 PM Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
>> Le mar. 25 mai 2021 à 15:41, Jean-Louis Monteiro <
>> jlmonteiro@tomitribe.com>
>> a écrit :
>>
>> > I'll create a ticket then and checkout master to contribute it.
>> > We can discuss after how I can help in the jakarka version of it
>> >
>>
>> While a string which ends up in the constant pool the relocation we have
>> in
>> place should do it for you, just needs to ensure it worked to avoid
>> surprises but I don't expect any action except "validation" one.
>>
>>
>> > --
>> > Jean-Louis Monteiro
>> > http://twitter.com/jlouismonteiro
>> > http://www.tomitribe.com
>> >
>> >
>> > On Tue, May 25, 2021 at 3:21 PM Romain Manni-Bucau <
>> rmannibucau@gmail.com>
>> > wrote:
>> >
>> > > Hi JL,
>> > >
>> > > Looks accurate to me done with javax on master (and likely properly
>> > > rewritten in our relocation/jakarta artifact).
>> > >
>> > > Romain Manni-Bucau
>> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
>> > > <https://rmannibucau.metawerx.net/> | Old Blog
>> > > <http://rmannibucau.wordpress.com> | Github <
>> > > https://github.com/rmannibucau> |
>> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
>> > > <
>> > >
>> >
>> https://www.packtpub.com/application-development/java-ee-8-high-performance
>> > > >
>> > >
>> > >
>> > > Le mar. 25 mai 2021 à 15:12, Jean-Louis Monteiro <
>> > jlmonteiro@tomitribe.com
>> > > >
>> > > a écrit :
>> > >
>> > > > Hi,
>> > > >
>> > > > In order to pass TCK for TomEE, I had to patch OpenJPA to avoid side
>> > > > effects with other providers such as EclipseLink for instance.
>> > > >
>> > > > The change I made makes sense to be included in OpenJPA in my
>> opinion.
>> > > > But I'd like to gather some thoughts for this change
>> > > >
>> > > >
>> > > >
>> > >
>> >
>> https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e
>> > > >
>> > > > I can create a JIRA ticket and submit a PR to OpenJPA if you guys
>> think
>> > > it
>> > > > makes sense.
>> > > > In essence it prevents OpenJPA from doing something when a JPA
>> provider
>> > > is
>> > > > explicitly specified.
>> > > >
>> > > > It will only do something if no JPA provider is specified or if
>> OpenJPA
>> > > is
>> > > > the JPA provider configured.
>> > > >
>> > > > --
>> > > > Jean-Louis Monteiro
>> > > > http://twitter.com/jlouismonteiro
>> > > > http://www.tomitribe.com
>> > > >
>> > >
>> >
>>
>

Re: Provider improvements for JPA TCK

Posted by Jean-Louis Monteiro <jl...@tomitribe.com>.
Awesome. Thanks Romain

--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Tue, May 25, 2021 at 4:20 PM Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Le mar. 25 mai 2021 à 15:41, Jean-Louis Monteiro <jlmonteiro@tomitribe.com
> >
> a écrit :
>
> > I'll create a ticket then and checkout master to contribute it.
> > We can discuss after how I can help in the jakarka version of it
> >
>
> While a string which ends up in the constant pool the relocation we have in
> place should do it for you, just needs to ensure it worked to avoid
> surprises but I don't expect any action except "validation" one.
>
>
> > --
> > Jean-Louis Monteiro
> > http://twitter.com/jlouismonteiro
> > http://www.tomitribe.com
> >
> >
> > On Tue, May 25, 2021 at 3:21 PM Romain Manni-Bucau <
> rmannibucau@gmail.com>
> > wrote:
> >
> > > Hi JL,
> > >
> > > Looks accurate to me done with javax on master (and likely properly
> > > rewritten in our relocation/jakarta artifact).
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > > <https://rmannibucau.metawerx.net/> | Old Blog
> > > <http://rmannibucau.wordpress.com> | Github <
> > > https://github.com/rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > > <
> > >
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > > >
> > >
> > >
> > > Le mar. 25 mai 2021 à 15:12, Jean-Louis Monteiro <
> > jlmonteiro@tomitribe.com
> > > >
> > > a écrit :
> > >
> > > > Hi,
> > > >
> > > > In order to pass TCK for TomEE, I had to patch OpenJPA to avoid side
> > > > effects with other providers such as EclipseLink for instance.
> > > >
> > > > The change I made makes sense to be included in OpenJPA in my
> opinion.
> > > > But I'd like to gather some thoughts for this change
> > > >
> > > >
> > > >
> > >
> >
> https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e
> > > >
> > > > I can create a JIRA ticket and submit a PR to OpenJPA if you guys
> think
> > > it
> > > > makes sense.
> > > > In essence it prevents OpenJPA from doing something when a JPA
> provider
> > > is
> > > > explicitly specified.
> > > >
> > > > It will only do something if no JPA provider is specified or if
> OpenJPA
> > > is
> > > > the JPA provider configured.
> > > >
> > > > --
> > > > Jean-Louis Monteiro
> > > > http://twitter.com/jlouismonteiro
> > > > http://www.tomitribe.com
> > > >
> > >
> >
>

Re: Provider improvements for JPA TCK

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Le mar. 25 mai 2021 à 15:41, Jean-Louis Monteiro <jl...@tomitribe.com>
a écrit :

> I'll create a ticket then and checkout master to contribute it.
> We can discuss after how I can help in the jakarka version of it
>

While a string which ends up in the constant pool the relocation we have in
place should do it for you, just needs to ensure it worked to avoid
surprises but I don't expect any action except "validation" one.


> --
> Jean-Louis Monteiro
> http://twitter.com/jlouismonteiro
> http://www.tomitribe.com
>
>
> On Tue, May 25, 2021 at 3:21 PM Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > Hi JL,
> >
> > Looks accurate to me done with javax on master (and likely properly
> > rewritten in our relocation/jakarta artifact).
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> > <https://rmannibucau.metawerx.net/> | Old Blog
> > <http://rmannibucau.wordpress.com> | Github <
> > https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> > <
> >
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> > >
> >
> >
> > Le mar. 25 mai 2021 à 15:12, Jean-Louis Monteiro <
> jlmonteiro@tomitribe.com
> > >
> > a écrit :
> >
> > > Hi,
> > >
> > > In order to pass TCK for TomEE, I had to patch OpenJPA to avoid side
> > > effects with other providers such as EclipseLink for instance.
> > >
> > > The change I made makes sense to be included in OpenJPA in my opinion.
> > > But I'd like to gather some thoughts for this change
> > >
> > >
> > >
> >
> https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e
> > >
> > > I can create a JIRA ticket and submit a PR to OpenJPA if you guys think
> > it
> > > makes sense.
> > > In essence it prevents OpenJPA from doing something when a JPA provider
> > is
> > > explicitly specified.
> > >
> > > It will only do something if no JPA provider is specified or if OpenJPA
> > is
> > > the JPA provider configured.
> > >
> > > --
> > > Jean-Louis Monteiro
> > > http://twitter.com/jlouismonteiro
> > > http://www.tomitribe.com
> > >
> >
>

Re: Provider improvements for JPA TCK

Posted by Jean-Louis Monteiro <jl...@tomitribe.com>.
I'll create a ticket then and checkout master to contribute it.
We can discuss after how I can help in the jakarka version of it
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com


On Tue, May 25, 2021 at 3:21 PM Romain Manni-Bucau <rm...@gmail.com>
wrote:

> Hi JL,
>
> Looks accurate to me done with javax on master (and likely properly
> rewritten in our relocation/jakarta artifact).
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <https://rmannibucau.metawerx.net/> | Old Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
> <
> https://www.packtpub.com/application-development/java-ee-8-high-performance
> >
>
>
> Le mar. 25 mai 2021 à 15:12, Jean-Louis Monteiro <jlmonteiro@tomitribe.com
> >
> a écrit :
>
> > Hi,
> >
> > In order to pass TCK for TomEE, I had to patch OpenJPA to avoid side
> > effects with other providers such as EclipseLink for instance.
> >
> > The change I made makes sense to be included in OpenJPA in my opinion.
> > But I'd like to gather some thoughts for this change
> >
> >
> >
> https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e
> >
> > I can create a JIRA ticket and submit a PR to OpenJPA if you guys think
> it
> > makes sense.
> > In essence it prevents OpenJPA from doing something when a JPA provider
> is
> > explicitly specified.
> >
> > It will only do something if no JPA provider is specified or if OpenJPA
> is
> > the JPA provider configured.
> >
> > --
> > Jean-Louis Monteiro
> > http://twitter.com/jlouismonteiro
> > http://www.tomitribe.com
> >
>

Re: Provider improvements for JPA TCK

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi JL,

Looks accurate to me done with javax on master (and likely properly
rewritten in our relocation/jakarta artifact).

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le mar. 25 mai 2021 à 15:12, Jean-Louis Monteiro <jl...@tomitribe.com>
a écrit :

> Hi,
>
> In order to pass TCK for TomEE, I had to patch OpenJPA to avoid side
> effects with other providers such as EclipseLink for instance.
>
> The change I made makes sense to be included in OpenJPA in my opinion.
> But I'd like to gather some thoughts for this change
>
>
> https://github.com/apache/tomee-jakarta/commit/4d579785f7554c59b83d0060ec8c1ead81385738#diff-1aba75a7cc55951fb938c64a533fc9de63c3139b3aec5cf1279a96394d910b1e
>
> I can create a JIRA ticket and submit a PR to OpenJPA if you guys think it
> makes sense.
> In essence it prevents OpenJPA from doing something when a JPA provider is
> explicitly specified.
>
> It will only do something if no JPA provider is specified or if OpenJPA is
> the JPA provider configured.
>
> --
> Jean-Louis Monteiro
> http://twitter.com/jlouismonteiro
> http://www.tomitribe.com
>