title: Updating database objects that have foreign collections?
body: <p>I'm trying to think of how to get around this problem. I have an ORMlite object that can belong to multiple Categories; I'm using another table (i.e. a ForeignCollection) to track many-to-many connections between my objects and categories.</p>
  
  <p>The problem is if I update the object with changed categories, the new categories are added, but old ones are not removed.</p>
  
  <p>In the JavaDoc for the <a href="http://ormlite.com/javadoc/ormlite-core/com/j256/ormlite/dao/Dao.html#update%28T%29" rel="nofollow">update method of DAO</a> I see this text:</p>
  
  <blockquote>
    <p>NOTE: Typically this will not save changes made to foreign objects or
    to foreign collections.</p>
  </blockquote>
  
  <p>My question is about the use of the word "typically." Does this mean that there IS a way through some sort of setting to make sure that updates update related foreign objects/collections?</p>
  
  <p>Or should I read the sentence as if "typically" was not there, assume there is no automatic method, and that I need to run extra queries on committing each object to delete old categories?</p>