latest gorm ignore columns with setters in db create
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
### Task List
- [ ] Steps to reproduce provided
- [ ] Stacktrace (if present) provided
- [ ] Example that reproduces the problem uploaded to Github
- [ ] Full description of the issue provided (see below)
### Steps to Reproduce
- clone https://github.com/ruiyang/grails-issue-demo.git
- `cd demo-gorm-issue`
- `grails run-app`
- navigate to http://localhost:8866/dbconsole
You will see the table created for Book is missing "tePercent". The reason is that tePercent in Book.groovy has a setter.
### Expected Behaviour
Create the te_percent column like what it did before.
### Actual Behaviour
te_percent column was missed
### Environment Information
- **Operating System**: MacOsX
- **GORM Version:** 6.1.8.RELEASE
- **Grails Version (if using Grails):** 3.3.2
- **JDK Version:** 1.8
### Example Application
https://github.com/ruiyang/grails-issue-demo.git
Contributor guide
Research direction
Start with the linked grails-issue-demo application, run `grails run-app`, and inspect Book.groovy and the dbconsole schema. Compare the setter-bearing tePercent property with the generated table and trace the GORM mapping behavior in the stated Grails and GORM versions. Done means the te_percent column is created for Book as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100