Skip to content

Ensure final fields of immutable entities are persisted correctly. #1763

Closed
@spring-projects-issues

Description

@spring-projects-issues

Michael Simons opened DATAGRAPH-1201 and commented

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.


Affects: 5.1.5 (Lovelace SR5)

Attachments:

Metadata

Metadata

Labels

in: coreIssues in core supportin: ogmObject Graph Mapping (Legacy)type: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions