Annotation Type 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 useNoArgConstructor
      Use a no-arg constructor instead of an all properties constructor (generated).
    • Element Detail

      • 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