When serializing a LAZY loadable embedded resource, there should be a way to configure that LAZY value should not be serialized.
For instance, when a @OneToMany association is considered, and the database call not triggered yet, the EmbeddedResourcesAssembler checks for a ExcerptProjection on the property, which will never be null as LAZY is not considered null:
EmbeddedResourcesAssembler:74
if (!projector.hasExcerptProjection(property.getActualType()))
{ return; }
Looks like this is a duplicate of DATAREST-1446, which we had fixed a couple of days ago. Any chance you give the snapshots a try before the service release upcoming early next week?
genglefr opened DATAREST-1435 and commented
When serializing a LAZY loadable embedded resource, there should be a way to configure that LAZY value should not be serialized.
For instance, when a
@OneToMany
association is considered, and the database call not triggered yet, the EmbeddedResourcesAssembler checks for a ExcerptProjection on the property, which will never be null as LAZY is not considered null:EmbeddedResourcesAssembler:74
DefaultExcerptProjector:67
This causes the resolution of the LAZY property.
A potential bugfix could be:
DefaultExcerptProjector:64
Affects: 3.2 GA (Moore)
Issue Links:
("duplicates")
Backported to: 3.2.1 (Moore SR1)
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: