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 6658809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:57:24+00:00 2026-05-26T01:57:24+00:00

I created a domain class called Money, with 3 fields. I did a generate-all.

  • 0

I created a domain class called Money, with 3 fields. I did a generate-all.

Then I totally changed the class, it now has a total of 10 fields, with none the same names as the first 3 fields.

When I generate-all, two problematic things are happening:

1) it is generating the old Money domain class, only containing the 3 fields, as observed by opening create.gsp or by running the code.

2) the overwrite behavior also has a small bug: I blow away the views/money directory and the MoneyController, and I find what happens is, the generate-all first generates the old domain class views/controller (i.e. from step 1), by observing the immediate/new file date/timestamps, and then asks me if I want to overwrite them! 🙂 Overwrite the stuff it just generated.

I’ve done this several times — blow away the views/money directory, the MoneyController, but I can’t get it to recognize the new one domain class, and have it build that. Strange.

I’m doing this in Intellig, using either the grails command window, or the short-cuts it allows one to do from the domain class; both operate the same (problem).

So I must have some Money domain class stuck somewhere, but I’ll be darned if I can find it. Also, note I do have the correct package in my new version of the domain class.

Any Suggestions?

I’m going to do a rename this class to Money2, just so I can get it to work. But that’s probably not a good end solution! 🙁

I’ve also exited out of intellij, and that didn’t help.

  • 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-05-26T01:57:25+00:00Added an answer on May 26, 2026 at 1:57 am

    This appears to be a problem in Intellij. When I ran grails generate-all outside of Intellij, it found errors in my constraints, and would not build the GSPs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I've got a domain model created from C# classes like this: public class
I have created an app to standardize user creation for our AD domain. Now
The following Groovy code creates a GORM-persisted domain class called Foo when written to
I'm working on a grails legacy project. A domain class called User exists. It
Say I have a user domain class with fields username and password . For
I have a domain object, Expense, that has a field called initialFields . It's
In our Core domain model design, we have got a class called Category whose
I'm porting over the interpreter for a domain specific language I created from Scala
I have the following code in a class that is called from a web
The organization I work for has created a small flash widget that we're encouraging

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.