XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.0 RC1 (Neumann)
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      We should allow the use of  @Value in the persistence constructor.

      	class WithProjection {
      
      		final @Id String id;
      		final @Transient String firstname;
      
      		public WithProjection(String id, @Value("#root.getString(1)") String firstname) {
      			this.id = id;
      			this.firstname = firstname;
      		}
      	}
      

      The root object refers to the underlying object that is used to materialize the object. For aggregate roots and top-level entities, that's typically the Row, UDTValue and TupleValue according to mapped types.
       

       

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              15 weeks, 5 days ago