[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3353) "version" column in db table induces an @Version hibernate annotation

Richard Ferrante (JIRA) jira-events at lists.jboss.org
Fri Aug 29 16:58:38 EDT 2008


"version" column in db table induces an @Version hibernate annotation
---------------------------------------------------------------------

                 Key: JBSEAM-3353
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3353
             Project: Seam
          Issue Type: Bug
    Affects Versions: 2.0.2.SP1
         Environment: Mac OSX  10.5.4
            Reporter: Richard Ferrante


One of my tables has a column named version
create table algorithm_info(                                                                                                                                                                  
        id                              int             not null        auto_increment,                                                                                                       
        name                            VARCHAR(255) not null,                                                                                                                                
        description     VARCHAR(1024) not null,                                                                                                                                               
        version                         VARCHAR(255),                                                                                                                                         
....

This generated the annotation

@Version
	@Column(name = "version")
	public String getVersion() {
		return this.version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
which caused the application to choke on startup
Problem solved by removing the "@Version" annotation  


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list