-
Notifications
You must be signed in to change notification settings - Fork 2
Annotations
Bob Vawter edited this page Jun 25, 2012
·
1 revision
-
@PermitAll,@DenyAll,@RolesAllowedmay be placed on property getters and setters to restrict access to those property by user role. This is used in combination with aRoleMapper. -
@InheritPrincipalmay be applied to a property getter to indicate that if the current user Principal may edit the referred object, it may also edit the referring object. This is used in combination with aPrincipalMapper.
-
@Embeddedis recognized and will cause the properties of the embedded value to be emitted in-line with the properties of the containing object. -
@OneToManyand@ManyToOneare recognized and will cause theUnpackerto keep both sides of a relationship in sync if a payload specifies a value for only one relatonship. For example, if amerchantLocation.merchantUuidvalue is in the payload, the associatedmerchant.merchantLocationsUuidproperty will be implicitly updated.
-
@JsonPropertymay be applied to getters to alter the encoded property name. -
@JsonTypeNameoverrides the entity type name mapping. -
@SuppressDefaultValuepreventsfalseor0-valued properties from being emitted.
-
@PreUnpackand@PostUnpackmay be applied to a no-arg method in an entity type to be called during the unpacking process.