Grails

MockUtils does not respect autoTimestamp false mapping

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2-RC2
  • Fix Version/s: 1.2.1
  • Component/s: Testing
  • Labels:
    None

Description

MockUtils will always try to assign new Date objects to dateCreated/lastUpdated properties even if autoTimestamp(false) is specified in the mapping block.

Activity

Hide
Robert Fletcher added a comment -
Show
Robert Fletcher added a comment - Fixed in commit http://github.com/grails/grails/commit/0308ae9a5d2f5e325fd83be0fbe03266d071522e on 1.2.x branch
Hide
Robert Fletcher added a comment -

Re-opening so I can re-work the fix without introducing a dependency on the Hibernate plugin.

Show
Robert Fletcher added a comment - Re-opening so I can re-work the fix without introducing a dependency on the Hibernate plugin.
Hide
Robert Fletcher added a comment -
Show
Robert Fletcher added a comment - FIxed on 1.2.x branch, see commit: http://github.com/grails/grails/commit/fccd041b4b17b1146c3a13ae8f7daaf346c0590e

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: