Open j4nos opened 7 years ago
In iOS it is possible to modify managedObject like this: mo.setValue(obj, forKey: "someAttribute")
mo.setValue(obj, forKey: "someAttribute")
Is it possible pass argument i.e. string and not class, pass argument without static type-check?
Or only by passing class as argument? Task task1 = objCtx.newObject(Task.class);
Task task1 = objCtx.newObject(Task.class);
http://stackoverflow.com/questions/40890602/get-dao-with-weak-typing-in-ormlite
Yes, it's possible. Each ManagedObject object exposes setValue and getValue. For example:
ManagedObject
setValue
getValue
task1.setValue("name", "the task's name")
Note that the schema for the ManagedObject must define the field.
In iOS it is possible to modify managedObject like this:
mo.setValue(obj, forKey: "someAttribute")
Is it possible pass argument i.e. string and not class, pass argument without static type-check?
Or only by passing class as argument?
Task task1 = objCtx.newObject(Task.class);
http://stackoverflow.com/questions/40890602/get-dao-with-weak-typing-in-ormlite