Update in PlayFramework not working

1

I'm testing play-framework 2.4.3 and did the code below to update the template I get via json, but only the update is not working. I have the log of the enabled queries but only a select appears for this action. I'm using the H2 bank. What is missing?

//Imports do controller    
import play.*;
import play.mvc.*;
import play.libs.*;
import views.html.*;
import java.util.*;
import models.*;

//Código da action
Estado estadoParametro = Json.fromJson(request().body().asJson(), Estado.class);
Estado estado = Estado.find.byId(id);       
estado.nome = estadoParametro.nome;
estado.update();
    
asked by anonymous 01.10.2015 / 04:06

0 answers