Yes, got i working like this.
Code:
<property name="weekValues" type=".package.MyUserType" >
<column name="WEEK1"/>
<column name="WEEK2"/>
<column name="WEEK3"/>
...
<column name="WEEK53"/>
</property>
public Object nullSafeGet( ResultSet resultSet, String[] names, Object owner )
throws HibernateException, SQLException
{
// assert names.length == 53;
int[] result = new int[ 53 ];
for ( int i = 0; i < result.length; i++ )
{
result[ i ] = resultSet.getInt( names[ i ] );
}
if ( resultSet.wasNull() )
{
return null;
}
return result;
}