List of usage examples for org.hibernate.type StringRepresentableType fromStringValue
T fromStringValue(String string) throws HibernateException;
From source file:org.riotfamily.common.hibernate.AnyIdAnyType.java
License:Apache License
private Serializable idFromString(String entityName, String id, SessionImplementor session) { if (id == null) { return null; }/* w w w .j ava 2 s. c om*/ StringRepresentableType<Serializable> idType = getStringRepresentableIdType(entityName, session); return idType.fromStringValue(id); }