[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: Re[eclipselink-users] questing Attribute Change Tracking programmatically, without using annotations?
|
When using weaving with JPA, attribute change tracking is the default, so you
should not need to do anything.
The change policy can be set in a ClassDescriptor through,
descriptor.setObjectChangePolicy(new AttributeChangeTrackingPolicy());
Gschwind, Doug wrote:
>
> Hello everyone,
>
>
>
> Is anyone aware of a way to programmatically specify that a given JPA
> mapped class in EclipseLink 1.0.1 is to use Attribute Change Tracking,
> without annotating the class with
> @ChangeTracking(ChangeTrackingType.ATTRIBUTE)?
>
>
>
> What I was hoping to be able to do was to visit each of the
> ClassDescriptor instances bound into a ServerSession and through some
> call chain be able to specify that the Class requires Attribute Change
> Tracking, but I have been unable to find the method(s) necessary to do
> so from a ClassDescriptor instance. Inspecting the 1.0.1 source leads me
> to believe what I am trying to do is not currently possible.
>
>
>
> Thanks
>
>
>
> Doug
>
>
>
>
>
>
>
> The contents of this electronic mail message and any attachments are
> confidential, possibly privileged and intended
> for the addressee(s) only. Only the addressee(s) may read, disseminate,
> retain or otherwise use this message. If
> received in error, please immediately inform the sender and then delete
> this message without disclosing its contents
> to anyone.
>
-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
EclipseLink , http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
--
View this message in context: http://www.nabble.com/Requesting-Attribute-Change-Tracking-programmatically%2C-without-using-annotations--tp20237482p20246396.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.