Jakarta Persistence (JPA) Method

ListAttribute<? super X,E> getList(
  String name,
  Class<E> elementType
)


Return the List-valued attribute of the managed type that corresponds to the specified name and Java element type.
Parameters:
name - the name of the represented attribute
elementType - the element type of the represented attribute
Returns:
ListAttribute of the given name and element type.
Throws:
IllegalArgumentException - if attribute of the given name and type is not present in the managed type.
Since:
Jakarta Persistence (JPA) 1.0