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

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -