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

Add support for @Value [DATAJDBC-508] #692

Closed
spring-projects-issues opened this issue Mar 19, 2020 · 0 comments
Closed

Add support for @Value [DATAJDBC-508] #692

spring-projects-issues opened this issue Mar 19, 2020 · 0 comments

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Mar 19, 2020

Mark Paluch opened DATAJDBC-508 and commented

We should allow usage of @Value-annotated constructor parameters so constructor value arguments can be derived from SpEL expressions.

	class UserDetails {

		String name;
		@Transient boolean isAdmin;

		UserDetails(String name, @Value("#root.groups.contains('admin') boolean isAdmin) {
			this.name = name;
			this.isAdmin = isAdmin;
		}
	}

Issue Links:

  • DATAJDBC-588 Using transient properties in constructor fail with Required property … not found for class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants