i have two dates in form submission in Spring 3 + Hibernate.
@Column(name = "FinStartDate")
 private Date finStartDate;

```
@Column(name = "FinEndDate")
private Date finEndDate;

```

I'm display/hide dates on the basis of some criteria. When the dates are hidden and submit the form, the following errors

```
org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 2 errors
Field error in object 'register' on field 'obj.finEndDate': rejected value []; codes [typeMismatch]

```

How to avoid the issue.