[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[eclipselink-users] ChangeTracking not working when Object is Created
|
- From: nishitv02 <nishitv_iitk@xxxxxxxxx>
- Date: Wed, 5 Aug 2009 21:36:03 -0700 (PDT)
- Delivered-to: eclipselink-users@eclipse.org
ChangeTracking does not work when an object is created from the database and
we use the same object pointer to update.
AttributeChangeListener myListener = (AttributeChangeListener)
((ChangeTracker) myObject)
._persistence_getPropertyChangeListener();
Weaving of myObject is happening fine as myObject can be casted to
changeTracker.
But myListener is null.
T retVal= (T)getJpaTemplate().execute(new JpaCallback() {
public Object doInJpa(EntityManager em)
throws PersistenceException {
em.persist(t);
..........
return t;
}
}
--
View this message in context: http://www.nabble.com/ChangeTracking-not-working-when-Object-is-Created-tp24800300p24800300.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.