Hi,
For our play projects we are using a business layer as model that we import as a jar. This business layer uses hibernate and we want to keep it independent from Play. We don't use the Model package at all in Play.
Is there a way to use the Play Framework Model functionalities with it ?
Let's take for example this piece of code from the Play documentation :
public static void hello(@Valid User user) {
if(validation.hasErrors()) {
params.flash();
validation.keep();
index();
}
render(name, age);
}
With User being a class mapped to the database in our external jar, could we use @Valid to achieve a similar result ?
Thank you very much.