Class DbDetachedException

All Implemented Interfaces:
Serializable

public class DbDetachedException extends DbException
This exception occurs while working with a ToMany or ToOne of an object and the object is not attached to a Box (technically a BoxStore).

If your code uses manually assigned IDs make sure it takes care of some things that ObjectBox would normally do by itself. This includes attaching the Box to an object before modifying a ToMany.

Also see the documentation about Updating Relations and manually assigned IDs for details.

See Also:
  • Constructor Details

    • DbDetachedException

      public DbDetachedException()
    • DbDetachedException

      public DbDetachedException(String message)