Created
February 24, 2014 21:15
-
-
Save bodiam/9197260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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