hi all,
i tryed deploy my seam project, but i got an error like this :
Code:
01:49:58,352 INFO [TableMetadata] table found: USER_MANAGER.USERS
01:49:58,352 INFO [TableMetadata] columns: [user_id, upd_date, user_name, person_id, reg_user_id, reg_date, user_status, user_pwd]
01:49:58,354 WARN [ServiceController] Problem starting service persistence.units:ear=MagticomBilling.ear,unitName=MagticomBilling
javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: USER_PWD, expected: blob
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:698)
after i added this fragment into my persistence.xml file :
Code:
<property name="hibernate.hbm2ddl.auto" value="validate"/>
here is my entity bean :
Code:
@Lob
@Column(name = "USER_PWD")
private byte [] userPwd;
/**
* Gets the userPwd of this Users.
* @return the userPwd
*/
public byte [] getUserPwd() {
return this.userPwd;
}
/**
* Sets the userPwd of this Users to the specified value.
* @param userPwd the new userPwd
*/
public void setUserPwd(byte [] userPwd) {
this.userPwd = userPwd;
}
and into my oracle database USER_PWD column is raw type.
i generate this entities by hibernate generator.
is there any mistake i did ?
what type of oracle database could i use for byte array?