by implementing a method as a service for API, i faced this problem
No serializer found for class org.jooq.JSON and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: java.util.ArrayList[0]-> db.jooq.tables.pojos.Query["queryJson"])
The Jooq POJO of my Query (TABLE) is :
private Integer id;
private JSON queryJson;
and the method which give a list of query as a respond is
@Produces(MediaType.APPLICATION_JSON) public Response
getQueries(@PathParam("ownerId") String ownerId,
@PathParam("roomId") String hotelroom) throws JsonProcessingException {
List<Query> queries = DatabaseUtil.getQueries(dsl, UUID.fromString(hotelroom));
return Response.ok(queries).build();}
But there is no serialize and if I change the jooq POJO to this :
private Integer id;
private String queryJson;
Then the output of my response will have no error by serializing. Does any one have an idea, how to solve this problem in jooq