Announcement Announcement Module
Collapse
No announcement yet.
HibernateException: Missing column version Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    By default Grails adds an id and a version column for you. To disable the version column, add

    Code:
    static mapping = {
       version false
    }

    Comment


    • #3
      Thanks for the help.

      Comment

      Working...
      X