Interface TransientAttributeDefinition<T>

Type Parameters:
T - the attribute value type
All Superinterfaces:

public interface TransientAttributeDefinition<T> extends AttributeDefinition<T>
An attribute that does not map to an underlying database column. The value of a transient attribute is initialized to null when entities are loaded, which means transient attributes always have null as the original value. The value of transient attributes can be set and retrieved like normal attributes but are ignored during DML operations. Note that by default setting a transient value marks the entity as being modified, but trying to update an entity with only transient values modified will result in an error.
  • Method Details

    • modifiesEntity

      boolean modifiesEntity()
      true if the value of this attribute being modified should result in a modified entity