List of usage examples for org.hibernate EntityMode toString
@Override
public String toString()
From source file:com.hazelcast.hibernate.serialization.Hibernate3CacheKeySerializer.java
License:Open Source License
@Override public void write(ObjectDataOutput out, CacheKey object) throws IOException { try {//w w w. j a v a 2 s.co m Object key = UNSAFE.getObject(object, KEY_OFFSET); Type type = (Type) UNSAFE.getObject(object, TYPE_OFFSET); String entityOrRoleName = (String) UNSAFE.getObject(object, ENTITY_OR_ROLE_NAME_OFFSET); EntityMode entityMode = (EntityMode) UNSAFE.getObject(object, ENTITY_MODE_OFFSET); int hashCode = UNSAFE.getInt(object, HASH_CODE_OFFSET); out.writeObject(key); out.writeObject(type); out.writeUTF(entityOrRoleName); out.writeUTF(entityMode.toString()); out.writeInt(hashCode); } catch (Exception e) { if (e instanceof IOException) { throw (IOException) e; } throw new IOException(e); } }