Announcement Announcement Module
No announcement yet.
HibernateException: Missing column version Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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

    static mapping = {
       version false


    • #3
      Thanks for the help.