Skip to content

Instantly share code, notes, and snippets.

@bodiam
Created February 24, 2014 21:15
Show Gist options
  • Select an option

  • Save bodiam/9197260 to your computer and use it in GitHub Desktop.

Select an option

Save bodiam/9197260 to your computer and use it in GitHub Desktop.
import groovy.transform.*
class Event {
int version
}
@Immutable class ItemActivated extends Event {
int id
}
def event = new ItemActivated(version:123, id:99)
println event.version // 0???
println event.id // 99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment