I am trying to create a bean from my xml configuration file that will end up in hibernates internal method:
/**
* binary: A type that maps an SQL VARBINARY to a Java byte[].
* author Gavin King
*/
protected byte[] toInternalFormat(Object bytes) {
return (byte[]) bytes;
}
I have absolutly no idea how to create a bean that is an array.
this is the data i am trying to create:
<bean class="java.lang.byte" id="insertValueTypeLongVarBinary">
<constructor-arg>
<value>10101010101010101</value>
</constructor-arg>
</bean>
/**
* binary: A type that maps an SQL VARBINARY to a Java byte[].
* author Gavin King
*/
protected byte[] toInternalFormat(Object bytes) {
return (byte[]) bytes;
}
I have absolutly no idea how to create a bean that is an array.
this is the data i am trying to create:
<bean class="java.lang.byte" id="insertValueTypeLongVarBinary">
<constructor-arg>
<value>10101010101010101</value>
</constructor-arg>
</bean>
Comment