java - Format to store in db4o in an android app -


i'm working on android project local community 'festival' , android app should sync online database everytime starts up, , store data on android in db4o. right data sendt app php page in json. works.

now question : how store items? should convert them java objects? or should store them json objects/arrays?

i have able retreive objects day (like events of friday) , 1 specific event info display info on screen (like day, time of event, free or not ...) info in online database , received androidapp (in json):

[{"id":"2","day":"friday","date":"friday 10 august","maintitle":"test","subtitle":"testevent","hour":"19.30 ","info":"this testevent","free":"0"}]

i haven't used db4o yet , appreciate if point me in right direction on best in situation. did read alot of info db4o able create database , store objects in , empty db put new info in it.

i've used db4o java before, convert them java objects. db4o's java native queries easy use, , allow objects fit criteria, such objects on day, or have object id of object want display on screen.

here tutorial db4o. native queries in section 3.2: http://www.db4o.com/about/productinformation/resources/db4o-6.3-tutorial-java.pdf


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

php - Dynamic url re-writing using htaccess -

java - Multi-Label Document Classification -