-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: byte[] being always marked as dirty
PostPosted: Mon Oct 08, 2007 11:44 am 
Newbie

Joined: Mon Oct 08, 2007 11:08 am
Posts: 2
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.


Top
 Profile  
 
 Post subject: primitive byte[]
PostPosted: Wed Oct 10, 2007 8:28 am 
Newbie

Joined: Mon Oct 08, 2007 11:08 am
Posts: 2
I am still stuck on this problem. If anyone has an idea for a solution I would really appreciate the help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.