0
在早期的項目中,我已經使用了grails
框架,其中我使用了日期lastUpdated
和日期dateCreated
。它在grails
工作。我們在Hibernate
中只有這樣的東西,以便我可以使用lastUpdated
或dateCreated
?如何在不使用JPA的情況下在Hibernate中使用dateCreated和lastUpdated?
其實我在.NET
找不到好的例子。
在早期的項目中,我已經使用了grails
框架,其中我使用了日期lastUpdated
和日期dateCreated
。它在grails
工作。我們在Hibernate
中只有這樣的東西,以便我可以使用lastUpdated
或dateCreated
?如何在不使用JPA的情況下在Hibernate中使用dateCreated和lastUpdated?
其實我在.NET
找不到好的例子。
您可以使用版本,請檢查hbm文件的語法。 儘管我們希望在保存對象之前使用API更新日期/時間。
thanx ...但你能給我提供任何參考鏈接嗎? 我陷入了它..儘管itz我的拳頭一天使用休眠...想知道該怎麼做:p :( – 2013-02-22 09:42:10
http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/ mapping.html#mapping-declaration-version,但它不會做你想做的,你必須手動完成 – overmeulen 2013-02-22 10:12:25