malteseduck / spring-data-marklogic

An implementation of the Spring Data interfaces for the MarkLogic NoSQL database
Apache License 2.0
7 stars 9 forks source link

Add transform configuration for entities #3

Closed malteseduck closed 6 years ago

malteseduck commented 7 years ago

Add @db-serializer and @db-deserializer, with @db-format to allow specification of transforms on entity

malteseduck commented 7 years ago

Create a ServerTransformer interface instead, and add a transformer property on the @Document annotation to specify the class. Then by default when writing or reading this server transformer will generate the appropriate ServerTransform. Could hard-code it in MarkLogicTemplate to call the transform, but maybe someplace better?