Annotation Interface Entity


@Retention(CLASS) @Target(TYPE) public @interface Entity
Marks a class as an ObjectBox Entity. Allows to obtain a Box for this Entity from BoxStore to persist Objects of this class.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Use a no-arg constructor instead of an all properties constructor (generated).
  • Element Details

    • useNoArgConstructor

      boolean useNoArgConstructor
      Use a no-arg constructor instead of an all properties constructor (generated). Note that is generally not recommended when using the ObjectBox Gradle plugin for Java classes.
      Default:
      false