Uploaded image for project: 'Spring Data Neo4j'
  1. Spring Data Neo4j
  2. DATAGRAPH-1201

Entities with immutable fields are not save correctly.

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.1.5 (Lovelace SR5)
    • Fix Version/s: None
    • Component/s: CORE, OGM
    • Labels:
      None

      Description

      See attached reproducer.

      @NodeEntity
      public class Blub {
      	@Id
      	@GeneratedValue
      	private Long id;
      
      	private final String name;
      
      	public Blub(String name) {
      		this.name = name;
      	}
      
      	public String getName() {
      		return name;
      	}
      }
      

      fails to be save correctly, name is always null.

      If you remove the final, than everything is ok.

        Attachments

          Activity

            People

            • Assignee:
              gerrit.meier Gerrit Meier
              Reporter:
              michael.simons Michael Simons
              Last updater:
              Michael Simons
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: