In listing 3.7, we import the constraints from User into ApplicationUser. Unfortunately, the password constraint has a custom validator that expects a loginId property, which doesn't exist on ApplicationUser. This results in a MissingPropertyException when you attempt to save a new ApplicationUser instance with a non-empty password. We should warn about this in the text.
In listing 3.7, we import the constraints from
User
intoApplicationUser
. Unfortunately, thepassword
constraint has a custom validator that expects aloginId
property, which doesn't exist onApplicationUser
. This results in aMissingPropertyException
when you attempt to save a newApplicationUser
instance with a non-empty password. We should warn about this in the text.