[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Re: Changes in mutable objects not detected
|
Hi!
> How do these changes occur? Are the mutable objects public and being
> changed directly?
Almost. The application uses a getter method to get a reference to a
byte array. The application then uses this reference to modify the byte
array directly without calling a setter method afterwards.
> Because if you were using a setter (thus overwriting
> the object) then there should be no problem. (This is how I do it for
> e.g. Calendar.)
Yes, that works, I'm not having problems with those parts. But the
application I'm trying to port also changes the arrays directly, not via
the setters. I couldn't find anything in the JPA spec that would
disallow this kind of access, so I would expect that EclipseLink is able
to detect the change somehow.
Best regards,
Sabine