I have a Java class like:
public class User {
public String name;
public String email;
}
Instead of creating another case class in Scala or using tuple, can I do something like
Form<User> form = Form.form(User.class)
The above code is possible in Play Java but not for Scala
play.data.Forminstead of the default one for Scala,play.api.data.Form)? You should be able to use that one from Scala exactly like from Java. Well, almost exactly, more likeform:Form[User] = Form.form(User.class)