title: Hibernate Initial SessionFactory creation failed
body: <p>I'm trying to use hibernate to fill my jsf <code>selectonemenu</code> in <code>ApplicationBean</code> (in Liferay). The problem is that I got Initial <code>SessionFactory</code> creation failed problem. Before putting my functions in the applicationbean I was setting them in sessionbean and I got no error.</p>
  
  <p>For now the full error  </p>
  
  <pre><code>Initial SessionFactory creation failed. 
  java.lang.ClassCastException: org.hibernate.type.StringType cannot be cast to org.hibernate.type.VersionType
  </code></pre>