- does it mean that all the annotated (say, with @Entity) classes
will be added to the empty pu?
- the whole process will be repeated each time
createEntityManagerFactory is called;
- how do we ever create a regular pu (seem like never go past this
nameless one)
-- I guess we could only use the new code if puName==null;
- worse yet, if the class is already loaded dynamic weaving won't
work (too late):
I think that would happen if you use a static variable
static Dog myDog = new Dog("My");
that forces to class to load.
Thanks,
Andrei
...
On 10/21/2014 12:22 PM, Rick Curtis
wrote:
> How does
the agent know which classes to weave?
Ah,
an empty persistence unit with
<exclude-unlisted-classes>false</exclude-unlisted-classes>...
with the hope that the agent will weave classes as they are
loaded and it won't eagerly load all classes looking for
Entities to enhance.
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev
|