June 2014
Intermediate to advanced
578 pages
12h 2m
English
One of the most convenient approaches for editing/updating a table row consists of using a special property to track the row edit status. This property can be named edited and it should be of the type boolean (default false). Define it in the POJO class, as shown in the following code:
public class Players {
...
private boolean edited;
...
public boolean isEdited() {
return edited;
}
public void setEdited(boolean edited) {
this.edited = edited;
}
}If your POJO class is an entity class, then define this new property as transient, using the @Transient annotation or transient modifier. This annotation will tell JPA that this property doesn't participate in persistence and that its values are never stored in the database. ...
Read now
Unlock full access