Interface DerivedAttributeDefinition.Builder<T,B extends DerivedAttributeDefinition.Builder<T,B>>

Type Parameters:
T - the attribute value type
All Superinterfaces:
AttributeDefinition.Builder<T,B>
Enclosing interface:
DerivedAttributeDefinition<T>

public static interface DerivedAttributeDefinition.Builder<T,B extends DerivedAttributeDefinition.Builder<T,B>> extends AttributeDefinition.Builder<T,B>
Builds a derived AttributeDefinition instance
  • Method Details

    • cached

      DerivedAttributeDefinition.Builder<T,B> cached(boolean cached)
      Default true unless no source attributes are specified or this is a denormalized attribute. Note that cached attributes are included when an entity is serialized.
      Parameters:
      cached - true if the value of this derived attribute should be cached, false if it should be computed on each access
      Returns:
      this builder instance
      Throws:
      IllegalArgumentException - in case this is a denormalized attribute