public void configure(Type type
String table = params
if (table==null) table = params
String column = params
if (column==null) column = params
String schema = params
sql =
log
}
private void getNext(Connection conn) throws HibernateException {
try {
PreparedStatement st = conn
ResultSet rs = st
if ( rs
next = rs
}
else {
next =
}
}catch(SQLException e)
{
throw new HibernateException(e);
}
finally {
try{
conn
}catch(SQLException e)
{
throw new HibernateException(e);
}
}
}
}
配置:
在對應的hbm文件裡面將id的配置如下:
<id name=<generator class=
</id>
[
From:http://tw.wingwit.com/Article/program/Java/ky/201311/29168.html