Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8597115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:50:29+00:00 2026-06-12T00:50:29+00:00

I just started Grails programming, and I was trying to access the table which

  • 0

I just started Grails programming, and I was trying to access the table which was predefined and accessed by other application, Table contains only 3 columns id, filename, msgcount. I successfully connect and access the table through grails. Until this everything is going fine, but when I run the main application (previously, which was accessing the table) I faced an error, which was about table attribute mismatch, so I went through the table design and found that there was an extra column named ‘version’. I am bit surprised by that extra column but after some diagnosis I realized that that column is added by grails application.

Is this addition of extra column is normal. Is there any solution so grails application doesn’t change the tables’s attribute (i.e. addition of extra column) which may bound us for using the same table for multiple application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:50:31+00:00Added an answer on June 12, 2026 at 12:50 am

    Yes, this is the default behavior of grails GORM. See this explanation: http://grails.org/doc/latest/guide/GORM.html#optimisticLockingAndVersioning

    You can solve it in 2 ways:

    a) Create a version field in your db table

    OR

    b) You can disable the version field from your domain class as follows:

    class YourDomainClass {
    
       static mapping = {
           version false
       }
    
       ...
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi am just started working on grails.. developed my first application in grails can
I m new to grails,just started with a small application, I'm searching a solution
I have just gotten started with Grails and I have a very basic application
Just started my first MVC 2.0 .net application. And I set up some default
I am a newbie just started exploring Grails so that I can recommend this
I'm just getting started with Groovy/Grails. I added a new domain controller to my
Okay, I've the strangest problem that I've just started to experience in a grails
Just started learning Groovy, got the PragProg book Programming Groovy and had a problem
I'm trying to implement i18n features in my grails app, but not only for
I'm just getting started with grails, and I'm having an issue. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.