Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Custom MetadataSource and Dynamic Weaving(Weaving does not occur when lazy mappings are specified via a custom MetadataSource)
Custom MetadataSource and Dynamic Weaving [message #788279] Wed, 01 February 2012 15:47
Mike Gorman is currently offline Mike GormanFriend
Messages: 6
Registered: February 2012
Junior Member
I need to specify all mapping information dynamically, at runtime. I was pleased to see support added for this in EclipseLink 2.3.0:

However, I also need weaving to take place dynamically, so I have specified -javaagent:eclipselink.jar as a JVM argument.

What I find is this: If my eclipselink-orm.xml is returned dynamically via a custom MetadataSource implementation, no weaving takes place. I get a message like this, instead:

Reverting the lazy setting on the OneToOne or ManyToOne attribute (createdBy) for the entity class (class model.UserGroup) since weaving was not enabled or did not occur.

Yet if I take the exact same XML produced by my custom MetadataSource, and paste it into a real eclipselink-orm.xml file within META-INF, then the weaving does take place.

I can provide a complete test harness to demonstrate but thought I would just ask, first. Can anyone confirm or deny whether dynamic weaving is compatible with custom MetadataSources or what it is I need to do to get dynamic weaving enabled when using a custom MetadataSource? Thanks in advance.

[Updated on: Wed, 01 February 2012 15:53]

Report message to a moderator

Previous Topic:composite key order
Next Topic:Don't get programmatical cache invalidation to work [JPA]
Goto Forum:

Current Time: Mon Aug 03 16:33:08 GMT 2020

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

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

Back to the top