java - Persisting Full Data Binding POJO to Database -
i have converted json
response pojo
, following concept of full data binding
.
pojo
looks this
public class user { public name _name; @jsoncreator public user(@jsonproperty("_name") name _name,){ this._name=_name; } public static final class name { public string _first; public gender _gender; @jsoncreator public name(@jsonproperty("_first") string _first,@jsonproperty("_gender") gender _gender){ this._first = _first; this._gender = _gender; } public static final class gender { public string age; public gender(@jsonproperty("age") string age){ this.age=age; } } } }
now need persist pojo
, not sure how should efficiently, have consider using hibernate
unaware how proceed.
how fields annotated in case use hibernate, since complex pojo
.
is there way use jdbc
? or simpler , efficient way achieve persistence kind of pojo
.
looking detail answer or example or clear concept.
thanks
Comments
Post a Comment