cascade-update not working in my case


Class log
private int id;
@Persistent(column = "userId", defaultFetchGroup = "true")
@Extensions({@Extension(vendorName = "datanucleus", key = "cascade-update", value = "false")})
private User user;

Class User {
@Persistent(primaryKey = "true", valueStrategy = IdGeneratorStrategy.IDENTITY)
private int userId;

Every log has related user.

When updating or inserting log, we dont want to update user properties .
For example

Log log = new Log();


User region is getting updated even if cascade-update is false. [Cascade-persist is working!!]

Can some one please help on this ?

I debugged the code cascade persist check is there but could not find any check for cascade-update. Should we persist data in different way ?

Join { to automatically receive all group messages.