Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pditommaso/mn-data-playground
https://github.com/pditommaso/mn-data-playground
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pditommaso/mn-data-playground
- Owner: pditommaso
- Created: 2019-10-31T22:03:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-21T08:39:17.000Z (over 4 years ago)
- Last Synced: 2024-10-15T09:56:13.570Z (2 months ago)
- Language: Groovy
- Size: 59.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MN data
Simple project Micronaut Data
## Get started
1. Create a project skeleton :
mn create-app --lang groovy mn-data -f hibernate-jpa
2. Add MN data deps as described in the documentation
annotationProcessor 'io.micronaut.data:micronaut-data-processor:1.0.0.M4'
implementation 'io.micronaut.data:micronaut-data-hibernate-jpa:1.0.0.M4'3. Add basic *Book* entity and repository as as described in the documentation
4. Test fails with the following error message:
```
java.lang.IllegalStateException: Micronaut Data method is missing compilation time query information. Ensure that the Micronaut Data annotation processors are declared in your build and try again with a clean re-build.
at io.micronaut.data.intercept.DataIntroductionAdvice.intercept(DataIntroductionAdvice.java:82)
at io.micronaut.aop.chain.MethodInterceptorChain.proceed(MethodInterceptorChain.java:69)
at mn.data.BookRepositoryTest.should save book(BookRepositoryTest.groovy:21)
```