Hibernate Mapped Domain Classes Not Working
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
Grails 3.3.3
annotated Java classes in Sources:main/java
grails-app/conf/hibernate/hibernate.cfg.xml
```
```
def person = new Person(name: "Tester")
person.save()
It's not woking with hibernate.cfg.xml
--No signature of method: ks.nms.test.Person.save() is applicable for argument types: ()
why ???
> WARNING: Your issue report will be closed if the issue report is incomplete and does not include an example. Make sure the below tasks not completed!
> NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Stack Overflow (http://stackoverflow.com/tags/grails) or Slack (http://slack-signup.grails.org). DO NOT use the issue tracker to ask questions.
### 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
1. TODO
2. TODO
3. TODO
### Expected Behaviour
Tell us what should happen
### Actual Behaviour
Tell us what happens instead
### Environment Information
- **Operating System**: TODO
- **GORM Version:** TODO
- **Grails Version (if using Grails):** TODO
- **JDK Version:** TODO
### Example Application
- TODO: link to github repository with example that reproduces the issue
Contributor guide
Research direction
Start with the annotated Java Person class, grails-app/conf/hibernate/hibernate.cfg.xml, and the person.save() call shown in the report. Reproduce the behavior with the stated Grails version and determine the missing configuration or integration detail; done requires a complete reproduction and a confirmed resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, java
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100