Skip to content

Instantly share code, notes, and snippets.

@beranradek
Last active August 29, 2015 13:57
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 beranradek/9727499 to your computer and use it in GitHub Desktop.
Save beranradek/9727499 to your computer and use it in GitHub Desktop.
private static final FormMapping<Registration> registrationForm =
Forms.automatic(Registration.class, "registration")
.nested(Forms.automatic(Address.class, "contactAddress",
Forms.factoryMethod(Address.class, "getInstance")).build())
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment