Results 1 to 3 of 3

Thread: HibernateException: Missing column version

  1. #1

    Default HibernateException: Missing column version

    i am trying to create a basic domain and run the application with only the initial domains created. This used to work initially however now it is indicating that one of my objects is missing a column in the database. Neither the database nor the object have a version column or attribute defined. the only thing i can think of is that it is default configuration to include a version attribute in the object. I am new to Hibernate and Grails. Can any one point me in the direction of why it is looking for a column/attribute that is neither defined in the object or the database table. Thanks in advance.

  2. #2
    Join Date
    Jul 2007
    Posts
    121

    Default

    By default Grails adds an id and a version column for you. To disable the version column, add

    Code:
    static mapping = {
       version false
    }

  3. #3

    Default

    Thanks for the help.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •