Uploaded image for project: 'Spring Data JDBC'
  1. Spring Data JDBC
  2. DATAJDBC-508

Add support for @Value

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.1 RC2 (2020.0.0)
    • Component/s: Core
    • Labels:
      None
    • Sprint:
      Neumann RC1, 2020.0.0 - Ockham M1, 2020.0.0 - Ockham RC2

      Description

      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;
      		}
      	}
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mp911de Mark Paluch
              Reporter:
              mp911de Mark Paluch
              Last updater:
              Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: