I am having a problem when I am loading an element from the database which was saved as a byte[ ] .
It is always marked as dirty when it is reloaded.
In the org.hibernate.type.TypeFactory class when the findDirty method is called the "currentState" variable has a byte [ ] (as expected) while the "previousState" has a Byte[ ].
The contents of both arrays are the same but as one is a byte[ ] and the other a Byte[ ] the element is marked a dirty.
Could anyone please tell my why the "previousState" is using a Byte[ ] instead of a byte[ ].
The element is being saved as a byte[ ].
The entry in the hibernate mapping file is :
<array name="variableSection" cascade="merge,persist,save-update,lock,refresh,delete">
<key update="true">
<column name="`program_variablesection_id`" not-null="true" unique="false"/>
</key>
<list-index column="`program_variablesection_idx`"/>
<element type="byte"/>
</array>
Any help would be greatly appreciated.
|