daoSession property

38 views
Skip to first unread message

Paolo Mancini

unread,
Oct 24, 2012, 4:33:19 AM10/24/12
to gree...@googlegroups.com
Hi, 
I'm adding some function in the keep section of the entity.
Can I use safety the daoSession and the myDao property or I need to pass the current session and the dao instance?

Thanks

Markus Junginger

unread,
Nov 4, 2012, 3:25:27 PM11/4/12
to gree...@googlegroups.com
I'm adding some function in the keep section of the entity.
Can I use safety the daoSession and the myDao property or I need to pass the current session and the dao instance?
Depends. If the entity is always loaded by greenDAO you should be fine. If you have to cope with new (unpersisted) entities, you should have your own references to the session/DAO.
Reply all
Reply to author
Forward
0 new messages