| Hi friends,
 for a table Table1 i have three fields id  int(4) , username nvarchar(50) and password varbinary(255), can somebody suggest how shall my mapping file be? i tried using byte[] but its not working. also from action class when creating this user i am converting this password string to byte[] and then trying to store with the help of model again there over type for password is byte[]. can somebody pl. help?
 
 here is my mapping file:
 
 <hibernate-mapping>
 <class name="com.x.y.models.Table1" table="table1">
 <id name="id" type="int">
 <column name="id" />
 <generator class="identity" />
 </id>
 <property name="username" type="java.lang.String">
 <column name="username" not-null="true" />
 </property>
 <property name="password" type="java.lang.byte[]">
 <column name="password" not-null="true" />
 </property></hibernate-mapping>
 
 pl. suggest what should be type in hibernate model for password?
 
 
 thanks in advance.
 
 
 |