On Tue, Jun 5, 2018 at 3:38 PM, Luis Barreiro wrote:
> My reading on that javadoc is that you only get the transformation once
> (the first time that a class is loaded) and after that, if it's used by
> other PUs, it may not get the transformations those PUs specify.
>
We added TRACE logging
My reading on that javadoc is that you only get the transformation once
(the first time that a class is loaded) and after that, if it's used by
other PUs, it may not get the transformations those PUs specify.
I would like to add that the enhancer is synchronous (it only enhance
one class at a
On Tue, Jun 5, 2018 at 1:06 PM, Sanne Grinovero wrote:
> On 5 June 2018 at 14:43, Scott Marlow wrote:
> > The PersistenceUnitInfo#addTransformer javadoc [1] mentions:
> >
> > "
> > Add a transformer supplied by the provider that will be called for every
> > new class definition or class
Thanks, I think they probably intended that the persistence provider would
use a marker interface like org.hibernate.engine.spi.Managed to ensure that
the enhancement is only done once. Responses to your questions are inline
below.
On Tue, Jun 5, 2018 at 12:19 PM, Luis Barreiro wrote:
> Hi
On 5 June 2018 at 14:43, Scott Marlow wrote:
> The PersistenceUnitInfo#addTransformer javadoc [1] mentions:
>
> "
> Add a transformer supplied by the provider that will be called for every
> new class definition or class redefinition that gets loaded by the loader
> returned by the
Hi Scott,
In the particular case of the hibernate bytecode enhancer, it adds the
org.hibernate.engine.spi.Managed marker interface to the entity so that
it only performs the enhancement once. (that implies that you can't have
the same entity enhanced for different features in the same class
The PersistenceUnitInfo#addTransformer javadoc [1] mentions:
"
Add a transformer supplied by the provider that will be called for every
new class definition or class redefinition that gets loaded by the loader
returned by the getClassLoader()