Annotation Type Container


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface Container

    Place on one or more fields inside an embedded class. When loaded, the field will be populated with a reference to the containing object. Since embedded classes can nest other classes, this will reference the first object of the correct type when searching up the chain.

    Container fields are ignored during save.

    Author:
    Jeff Schnitzer