Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to tell if user is submitting a form with changed values, in a Spring MVC-based webapp?
- @Override
- public int hashCode() {
- return Objects.hashCode(this.field1, this.field2, etc.);
- }
- public static boolean hasFormChanged(Object form1, Object form2) {
- return HashCodeBuilder.reflectionHashCode(form1) != HashCodeBuilder.reflectionHashCode(form2);
- }
Add Comment
Please, Sign In to add comment