Computer scienceBackendSpring BootSpring DataMongoDB

Mapping classes to JSON documents

Type it

Report a typo

Imagine you have a class with a field of type int. However, you want it to be stored as a String in the JSON document. Which annotation should you use to achieve it?

Select one option from the list

Create a free account to access the full topic