Method Hibernate.createBlob() is deprecated from Hibernate 4.0.1 and moved to Hibernate.getLobCreator(Session session).createBlob() <p>Method <code>Hibernate.createBlob()</code> is deprecated from <strong>Hibernate 4.0.1</strong> and moved to <code>Hibernate.getLobCreator(Session session).createBlob()</code>. Any solution what should I pass inside method <code>getLobCreator(Session session)</code>, i.e in place of Session, Or any other solution showing how to retrieve and save an image into DB using Spring and Hibernate.</p>