We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I can't understand how to connect my RestController to db, how i can send queries to db and get it's response? I tried some ugly ways like this
@RequestMapping(method = GET) @ResponseBody public ResourceList<TestEntity> getAllEntities() { TestEntityRepository repository = new TestEntityRepository(); for (RegistryEntry entry : resourceRegistry.getResources()) { repository = (TestEntityRepository)entry.getResourceRepository(null).getResourceRepository(); } return repository.findAll(new QuerySpec(TestEntity.class)); }
and others. Could somebody help my with this issue?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
I can't understand how to connect my RestController to db, how i can send queries to db and get it's response?
I tried some ugly ways like this
and others. Could somebody help my with this issue?
The text was updated successfully, but these errors were encountered: