I want to use SchemeExport to produce a table as below:
Code:
create table project (
proj_id int not null,
proj_desc blob(800,1),
primary key(proj_id)
);
the 'blob(800,1)' means a long string type.
but i really donot know how to use xdoclet to get right project.hbm.xml :(
Code:
package com.zsoft.dos;
import java.sql.Clob;
/**
* @hibernate.class table="project"
*/
public class Project
{
private Long _id;
private Clob _desc;
/**
* @hibernate.id column="proj_id" ...
*/
public Long getId() { return _id;}
public void setId(Long id) {_id = id;}
/**
* @hibernate.property column="proj_desc" ... ??????
*/
public Clob getDesc() { return _desc; }
pubic void setDesc(Clob desc) {_desc = desc;}
}
any suggestion ?