Grails

Documentation doesn't mention that a domain class version type can be Timestamp

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0-M1
  • Component/s: Documentation
  • Labels:
    None

Description

Hibernate supports either long/integer/short or timestamp/calendar as the type of the version property used for optimistic lock checking, but the docs don't mention that Grails supports the timestamp type. I discovered it by finding it in the source and trying it. The docs should mention this as an option.

Activity

Hide
Graeme Rocher added a comment -

I didn't even know this was supported myself, how do you enable it?

Show
Graeme Rocher added a comment - I didn't even know this was supported myself, how do you enable it?
Hide
Burt Beckwith added a comment - - edited

I just added

Timestamp version

to a domain class and it worked fine.

Show
Burt Beckwith added a comment - - edited I just added
Timestamp version
to a domain class and it worked fine.
Hide
Graeme Rocher added a comment -

Assigning all documentation related issues to 1.2 final since they don't represent a change to the codebase

Show
Graeme Rocher added a comment - Assigning all documentation related issues to 1.2 final since they don't represent a change to the codebase

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: