Skip to content

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

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions