Skip to content

MapingException when persisting Entity with a property as Map<String, Object> using converter Map to (bytes[]/String) [DATAJDBC-650] #867

Open
@spring-projects-issues

Description

@spring-projects-issues

B-hamza opened DATAJDBC-650 and commented

When trying to persist an Entity like : 

 

class Test {
 private final String a;
 private final Map<String, Object> b;
.... // constructor, getters
}

 

using Readind and Writing converters from Map to bytes[]. The write is OK. But when reading is KO with exception :

 

Couldn't find PersistentEntity for type class java.lang.Object!Couldn't find PersistentEntity for type class java.lang.Object!org.springframework.data.mapping.MappingException: Couldn't find PersistentEntity for type class java.lang.Object! at org.springframework.data.mapping.context.MappingContext.getRequiredPersistentEntity(MappingContext.java:79)

 


Affects: 2.1.2 (2020.0.2)

Metadata

Metadata

Assignees

Labels

in: mappingMapping and conversion infrastructuretype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions