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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.