java - ORM Lite initialize foreign collection -



java - ORM Lite initialize foreign collection -

i have foreign collection field on object. if create object > save > query : have , can utilize it. if create object , seek access foreign collection field right away it's null. how can initialize it?

as part of ormlite dao class, there assignemptyforeigncollection(...) method. creates empty collection , assigns proper field.

to quote javadocs method:

creates empty collection , assigns appropriate field in parent object. allows add together things collection start. illustration let's have business relationship has field:

java ormlite foreign-collection

Comments

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

model view controller - MVC Rails Planning -

php - Working with pretty urls on apache and fastcgi after hhvm installation -