Grails domain beforeInsert / beforeUpdate

前端 未结 2 1296
情深已故
情深已故 2020-12-20 00:40

I want to save my domain class to the database without specifying the createdUser or createdDate. I’ve created an object called AuditingInfo<

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-20 01:38

    You can apply your metaClass modifications from within your Bootstrap.groovy, which is executed at start-up.

提交回复
热议问题