[Teneo] comparison byte[] with Byte[] [message #609967] |
Wed, 10 October 2007 15:35 |
Parvez Messages: 181 Registered: July 2009 |
Senior Member |
|
|
Hi,
I am not sure if this can be solved at emf-teneo level or lies with
hibernate.
We have a binary attribute.
In emf core attribute type is EByteArray [byte[]] and in hibernate file
array has byte element type i.e. <element type="byte"/>.
Data is saved and retrieved fine.
But only thing is that when hibernate looks for changes it compares
btye[] with Byte[]. Though contents are same that result in treating it
as dirty i.e. org.hibernate.type.TypeFactory.findDirty() method compares
"currentState" as byte [ ] with "previousState" as Byte[ ].
So everytime data is loaded, this one is always marked dirty.
Is there some way around this?
Thanks.
- Parvez
|
|
|
Powered by
FUDForum. Page generated in 0.03029 seconds