I saved a record from my application with Hibernate3 and the record gets saved in my MySQL database table the problem is the version field does not get populated by a 1 by hibernate. Why is hibernate ignoring this task?
Here is my Table: CREATE TABLE contactus_message ( id BIGINT(9) UNSIGNED NOT NULL AUTO_INCREMENT, version INT(11) NOT NULL, full_name VARCHAR(50) NOT NULL, from_email VARCHAR(50) NOT NULL, cc_email VARCHAR(100) DEFAULT NULL, to_email VARCHAR(50) NOT NULL, email_subject VARCHAR(200) NOT NULL, email_message VARCHAR(1500) NOT NULL, date_sent datetime DEFAULT NULL, PRIMARY KEY (id) )ENGINE=InnoDB DEFAULT CHARSET=utf8; field in my domain class: protected Integer version; @Version public Integer getVersion() { return version; } What am I doing wrong? -- - Paul --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]