Tag: json
-
How to map JSON data in PostGreSQL database to a Hibernate Entity column?
PostGreSQL database is one of the most popular open source databases . It has features which traditional relational databases lack , like storing a JSON as itself in the database. JSON is a widely used communication data format and hence this feature comes quite handy. The problem arises when you use an ORM tool like…
-
How to map Enum Types to JSON requests in Spring Boot automatically?
Let’s say you have created a REST service which accepts a JSON request. And one of the attributes in the request can only have a range of constant values. For example , the departments an employee can belong to. And the best way to represent this , is to use an Enum. But will a…