Skip to content

Storing non root entities in serialized form [DATAJDBC-450] #673

Open
@spring-projects-issues

Description

@spring-projects-issues

Bahadır Yağan opened DATAJDBC-450 and commented

It may be a good feature to optionally store non-root entities in a single column in the aggregate root's table, rather than separate table(s)

Object tree will be serialized (possibly as json) and stored in a single text column. The user than has the option of using their DBMS' support for such columns. (jsonb or hstore for postgres is an example)

My somewhat related SO question:

https://stackoverflow.com/questions/58910098/mapstring-string-single-column-mapping-in-spring-data-jdbc

 

 


Issue Links:

  • DATAJDBC-476 BasicRelationalConverter.writeValue(…) assumes eager entity conversion

  • DATACMNS-1036 Add API for property specific converters

Metadata

Metadata

Assignees

No one assigned

    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