UUID生成類
ShortUUIDIncrementGenerator Log log = LogFactory.getLog(ShortUUIDIncrementGenerator. String sql = "select uuid_short()"
Serializable generate(SessionImplementor sessionImplementor, Object o) ( PreparedStatement st = ResultSet rs = result = rs.getLong(1 } log.debug("GUID identifier generated: " + } } "could not retrieve GUID"
configure(Type type, Properties properties, Dialect dialect)
}
配置:
= "shortUid"= "shortUid", strategy = "com.up72.msi.util.ShortUUIDIncrementGenerator"= "id", unique = , nullable = , insertable = , updatable = , length = 19 java.lang.Long getId() {