if (value == null) return null;
Character[] characters = (Character[]) value;
char[] chars = new char[characters.length];
for (int i = 0 ; i < characters.length ; i++) {
if (characters[i] == null)
throw new HibernateException("Unable to store an Character[] when one of its element is null");
chars[i] = characters[i].charValue();
}
return chars;