Skip to content

Instantly share code, notes, and snippets.

@bodiam
Created February 24, 2014 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bodiam/9197260 to your computer and use it in GitHub Desktop.
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