Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Weving(could not be weaved for change tracking as it is not supported by its mappings)
Weving [message #772640] Fri, 30 December 2011 09:13 Go to next message
Beat Ris is currently offline Beat RisFriend
Messages: 2
Registered: December 2011
Junior Member
Hi all

I have a persistence model which contains about 50 classes. I run the static waeving an do not get no error messages. So everything looks fine.
When I start the application I get the warning for a certain class which could not
be weaved for change tracking as it is not supported by its mappings. There is no difference between static or dynamic weaving, I get the warning in in both cases:

[EL Config]: 2011-12-28 11:56:38.523--ServerSession(11742932)--Thread(Thread[main,5,main])--Class ch.wiegand.lib.wmm.wmcl.model.patient.Patient could not be weaved for change tracking as it is not supported by its mappings.

There is no special thing about this to classes as far as I can tell. So I was
looking through the documentation what the "rules of weaving" would be, but did
not found anything which gives me an answer.

Any hint or help would be appreciated,
Thanks
Beat Ris
Re: Weving [message #777508 is a reply to message #772640] Tue, 10 January 2012 16:02 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

This is just a warning, and everything will function correctly without the weaving of change tracking. Change tracking is only a performance optimization.

My guess is you have an EAGER OneToMany to ManyToMany, or an ElementCollection, LAZY is required for change tracking. If you include the class mapping, I can confirm.

--
James : http://wiki.eclipse.org/EclipseLink : http://en.wikibooks.org/wiki/Java_Persistence : http://java-persistence-performance.blogspot.com/


James : Wiki : Book : Blog : Twitter
Previous Topic:Erroneously duplicated @DiscriminatorValue - don't try this at home
Next Topic:Weving
Goto Forum:
  


Current Time: Mon Nov 24 12:45:06 GMT 2014

Powered by FUDForum. Page generated in 0.01931 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software