Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate greenDAO with JSON Jackson and handle many to many relation mapping

Is there any best way to integrate JSON Jackson with greenDAO. Also, how to handle many to many relation mapping using greenDAO. I found that, we need to create a connecting table to have many to many mapping. Is there any example having all these features together.

like image 469
Manjunath Avatar asked Nov 11 '22 23:11

Manjunath


1 Answers

You can do it in dao Generator file edit entity.ftl

and add necessary lines to integrate Jackson ie

import com.fasterxml.jackson.annotation.JsonProperty; 

and

@JsonProperty("Tag Name")

Thus you dont have to write any extra code for this.

like image 116
kukku Avatar answered Nov 14 '22 23:11

kukku