Skip to content
New issue

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

RestController requires overrides to support multiple datasources #400

Closed
saba-mo opened this issue Sep 12, 2024 · 0 comments · Fixed by #401
Closed

RestController requires overrides to support multiple datasources #400

saba-mo opened this issue Sep 12, 2024 · 0 comments · Fixed by #401
Assignees

Comments

@saba-mo
Copy link
Contributor

saba-mo commented Sep 12, 2024

A client app is trying to map to a secondary datasource in a domain object, but defaults to the first datasource.

Another client app works around this by overriding several RestController methods and wrapping them in restTarget.withTransaction, and references this Grails issue: grails/grails-core#10383

We should be able to apply this pattern within RestController so that app's have this support out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant