Re: [appfuse-user] Version field not populated with a 1

2007-03-21 Thread masterg007
Matt, Yes, you are right it does start at 0 and increments as the record is updated as this link will atest: http://www.onjava.com/pub/a/onjava/2006/09/13/dont-let-hibernate-steal-your-identity.html Why did I not know this? For some reason I thought it inserted a 1 not a 0. Sorry for wastin

Re: [appfuse-user] Version field not populated with a 1

2007-03-21 Thread Matt Raible
I believe inserting 0 is the correct behavior. Matt On 3/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: matt: I turned on hibernate's show sql and when it does the insert it prints to the console: insert into contactus_message (email_message, version, date_sent, from_email, to_email, cc_em

Re: [appfuse-user] Version field not populated with a 1

2007-03-21 Thread masterg007
matt: I turned on hibernate's show sql and when it does the insert it prints to the console: insert into contactus_message (email_message, version, date_sent, from_email, to_email, cc_email, email_subject, full_name) values (?, ?, ?, ?, ?, ?, ?, ?) my GUI is setup to only save a record I can't up

Re: [appfuse-user] Version field not populated with a 1

2007-03-21 Thread Matt Raible
What happens if you update from the UI - do you get an error? Matt On 3/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: matt: It gets populated with a 0. I can't update from the UI I can only enter new records. On 3/21/07, Matt Raible <[EMAIL PROTECTED]> wrote: > Is the version fi

Re: [appfuse-user] Version field not populated with a 1

2007-03-21 Thread masterg007
matt: It gets populated with a 0. I can't update from the UI I can only enter new records. On 3/21/07, Matt Raible <[EMAIL PROTECTED]> wrote: Is the version field populated at all? What if you update the record in the UI? Matt On 3/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >

Re: [appfuse-user] Version field not populated with a 1

2007-03-21 Thread Matt Raible
Is the version field populated at all? What if you update the record in the UI? Matt On 3/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: 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

[appfuse-user] Version field not populated with a 1

2007-03-21 Thread masterg007
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 N