数据库sql server 2000
java 类型 java.util.Date
Hibernate类型 timestamp
数据库类型 datetime
新增一条数据进入数据库时 时间格式 是 年月日 时分秒
当把Hibernate 类型改为date时,
插进数据库的数据 就只有 年月日 没有时分秒了.
引用var alarm = {
remind: function(aMessage) {
alert(aMessage);
delete this.timeoutID;
},
setup: function() {
this.cancel();
var self = this;
this.timeoutID = window.setTimeout(function(msg) {self.remind(msg);}, 1000, "Wake up!");
},
cancel: function() {
if(typeof t ...
- 14:54
- 浏览 (54)
- 评论 (0)
- 分类: javascript
PreparedStatement pStmt = null;
ResultSet rs = null;
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
Session session = sessionFactory.openSession();
pStmt = session.connection().prepareStatement(sql);
rs = pStmt.executeQuery();
hibernate 的 Session 获取Res ...







评论排行榜