Jakarta Persistence (JPA) Method

EmbeddableType<X> embeddable(
  Class<X> cls
)


Return the metamodel embeddable type representing the embeddable class.
Parameters:
cls - the type of the represented embeddable class
Returns:
the metamodel embeddable type.
Throws:
IllegalArgumentException - if not an embeddable class.
Since:
Jakarta Persistence (JPA) 1.0