play-java-ebean-example icon indicating copy to clipboard operation
play-java-ebean-example copied to clipboard

Differentiate form data from persisted data

Open wsargent opened this issue 8 years ago • 0 comments

This example is using the computer ebean DB model as the form data. This is not great, because it means that persistence methods are exposed to the front end template and there's inappropriate coupling between database fields and form fields.

https://github.com/playframework/play-java-ebean-example/blob/2.6.x/app/controllers/HomeController.java#L94

wsargent avatar Jul 14 '17 21:07 wsargent