Module jakarta.data

Interface NavigableAttribute<T,U>

Type Parameters:
T - entity class of the static metamodel.
U - type of entity attribute.
All Superinterfaces:
Attribute<T>, NavigableExpression<T,U>

public interface NavigableAttribute<T,U> extends Attribute<T>, NavigableExpression<T,U>

Represents an entity attribute that is an embeddable or association to another entity. These types of entity attributes have attributes of their own that can be navigated to.

Since:
1.1
  • Method Details

    • type

      Class<U> type()
      Description copied from interface: Attribute
      Obtain the Java class of the entity attribute.
      Specified by:
      type in interface Attribute<T>
      Returns:
      the type of the entity attribute.
    • of

      static <T, U> NavigableAttribute<T,U> of(Class<T> entityClass, String name, Class<U> attributeType)

      Creates a static metamodel NavigableAttribute representing the entity attribute with the specified name.

      Type Parameters:
      T - entity class of the static metamodel.
      U - type of entity attribute.
      Parameters:
      entityClass - the entity class.
      name - the name of the entity attribute.
      attributeType - type of the entity attribute.
      Returns:
      instance of NavigableAttribute.