My code
TableQuery q1 = new TableQuery("acmbooks", connectionPool); (table acmbooks)
htContainer = new SQLContainer(q1);
htContainer.addContainerFilter(new Equal("id", 152365)); (id key )
I can get one row,
but I don't kown How to update property of Value row ??
((Item)htContainer.firstItemId()).getItemProperty("Property").setValue(“ I want to changed text ”); [color=#ee3030]
(Write like this didn’t respond)
[/color]
(I do not see example for update database for use SQLContainer in vaadin book or website!)
Another method
String str1 = "UPDATE acmbooks SET content =" +“ I want to changed text ” + ”WHERE id = 152365“;
FreeformQuery q2 = new FreeformQuery(str1, connectionPool, "ID");
q2.commit();
([color=#e45151]
This too not right !
[/color] ) What can I do? Thanks!