entity User{
  roles -> Set<Role>
}
entity Role {
  roletype -> RoleType  
}
enum RoleType {
  role1("1")
}
var useradmin := User{ 
  roles := {Role{ roletype := role1  }}                           
}

The roletype in the Role entity ends up being a different instance than the global role1.

Submitted by Danny Groenewegen on 1 September 2011 at 16:44

On 5 September 2011 at 14:29 Danny Groenewegen tagged 1.2.9

On 24 February 2012 at 17:02 Danny Groenewegen tagged 1.3.0

On 24 February 2012 at 17:02 Danny Groenewegen removed tag 1.2.9

On 15 January 2013 at 14:34 Danny Groenewegen tagged confirmed

On 15 January 2013 at 14:34 Danny Groenewegen removed tag 1.3.0

Log in to post comments