Hi everyone,

I want to migrate an Android application from SQLite to CBLite and I want to 
keep my
business objects to avoid a major rewrite.

Right now the app uses ORMlite to map business objects to database tables and 
all UI and
business logic code is built on top of the business objects.

I have not found any useable OR mapper for CBLite, am I missing something?

How do you work with data, do you all use the getProperties()->copy->edit-
>putProperties() approach as seen below to set individual properties?

Map<String, Object> curProperties = document.getProperties();
Map<String, Object> newProperties = new HashMap<String, Object>();
newProperties.putAll(curProperties);
boolean checked = ((Boolean) newProperties.get("check")).booleanValue();
newProperties.put("check", !checked);
document.putProperties(newProperties);

Best regards,
Sascha

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to