Changes in mutable objects not detected [message #390504] |
Mon, 20 July 2009 03:50  |
Eclipse User |
|
|
|
Hi,
I am currently porting an application to EclipseLink. While doing so, I
faced the issue that changes inside a byte array (i.e. changes to the
contents, not the array itself) are not detected and thus not
synchronized to the database. I did some more testing and realized that
this affects all kind of mutable objects including the date/time related
data types.
Is there any way to configure EclipseLink so that it also detects
changes inside mutable objects?
Thanks and best regards,
Sabine
|
|
|
|
|
|
|
|
Re: Changes in mutable objects not detected [message #467871 is a reply to message #390598] |
Mon, 03 August 2009 05:06  |
Eclipse User |
|
|
|
Hi James!
You wrote:
> For dates you can set the persistence property,
>
> "eclipselink.temporal.mutable"="true"
Thanks, that's what I was looking for - and it works as expected.
> For the byte array you can mark the mapping as mutable using @Mutable.
I tried this out and it worked for a byte[] array. However, I tested it
also on the other array types that are supported according to the JPA
spec, i.e. Byte[], char[] and Character[], and it failed on all of them.
That's not limiting me, actually, as I have only a use case for the
byte[] array (I haven't seen the other array types in real-life
applications so far). Still, I wanted to mention it.
It would be much nicer, though, to have a global switch like the one for
the temporal types. It would be more consistent and would reduce the
effort when porting _many_ applications.
Best regards,
Sabine
|
|
|
Powered by
FUDForum. Page generated in 0.04129 seconds