0

I have the same problem like here: solution

Execution exception:

[IllegalStateException: JSR-303 validated property 'phone' does not have a corresponding accessor for data binding - check your DataBinder's configuration (bean property versus direct field access)]

JSR-303

@Entity
public class Contact extends Model {

    @Id
    @GeneratedValue
    public Long id;

    @Required
    public String name;

    @Required
    public String phone;

    @Required
    @Email
    public String email;


    public static Finder<Long, Contact> find = new Finder<>(Contact.class);
}

When I add getters/setters ... it's OK

Mateusz Sroka
  • 2,255
  • 2
  • 17
  • 19
JDKot
  • 6,643
  • 2
  • 10
  • 12
  • Did you try "play clean -all" command? Check this post http://stackoverflow.com/questions/16860046/playframework-jsr-303-validated-field-does-not-have-a-corresponding-accessor-f – Oldskultxo Jan 18 '16 at 11:14
  • @Oldskultxo I don't know how to use Play 2 in Windows console – JDKot Jan 18 '16 at 11:34
  • so you problem is bigger... https://www.playframework.com/documentation/2.0/PlayConsole – Oldskultxo Jan 18 '16 at 11:36

0 Answers0