JavaScript is disabled on your browser.
java.lang.Object
org.springframework.data.mongodb.core.convert.MongoJsonSchemaMapper
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
org.bson.Document
mapSchema (org.bson.Document jsonSchema,
Class <?> type)
Map the required and properties fields the given Document
containing the
$jsonSchema against the given domain type.
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Method Detail
mapSchema
public org.bson.Document mapSchema(org.bson.Document jsonSchema,
Class <?> type)
Map the required and properties fields the given Document
containing the
$jsonSchema against the given domain type.
The source document remains untouched, fields that do not require mapping are simply copied over to the mapped
instance.
Specified by:
mapSchema
in interface JsonSchemaMapper
Parameters:
jsonSchema
- the Document
holding the raw schema representation. Must not be null.
type
- the target type to map against. Must not be null.
Returns:
a new Document
containing the mapped $jsonSchema never null.