I have a table with a column field updatetime which has been defined as auto generate on update,
When i try to update i get error stating cannot set value of auto generated column,
Is there any annotation to do so???
The column is defined like this
LASTCHANGEDATE FOR COLUMN LSTCHGDATE TIMESTAMP GENERATED ALWAYS FOR EACH ROW ON UPDATE AS ROW CHANGE TIMESTAMP NOT NULL ,
I have a model like this
@XmlRootElement(name = "MyTable") @Entity @Table(name = "MYTABLE") @Path("/") public class MyTable {
private java.util.Date lASTCHANGEDATE;
public void setLASTCHANGEDATE(java.util.Date _lASTCHANGEDATE) { this.lASTCHANGEDATE = _lASTCHANGEDATE; }
@XmlElement(name = "LASTCHANGEDATE") @Column(name = "LASTCHANGEDATE") public java.util.Date getLASTCHANGEDATE() { return this.lASTCHANGEDATE; } }
|