title: jasypt with Hibernate
body: <p>I want to use Jasypt with Hibernate in servlets. I refered <a href="http://www.jasypt.org/hibernate.html" rel="nofollow">Jasypt here</a>. It says how to configure Hibernate. But, still it is not clear that how I can handle <code>session</code> to save &amp; retrieve results. I did configurations of Hibernate as mentioned in above link(and I m not going to past them here again). Let me know how to save &amp; retrieve data with Session.<br>
  For a simple example,lets say, I have a table called 'login' consisting 2 columns 'name','password'. column 'name' data type is varchar and 'password' is varbinary. The <code>pojo</code> class has variables String name and byte[] password.   How can I save and retrieve data from table 'login'.At least any useful link which explain with sample codes ll be appreciated.</p>
  
  <p><strong>Edit</strong><br>
  When I configured hibernate .hbm file &amp; try to save as usual, an exception is also thrown.</p>