ObjectDB ObjectDB

embeddable(cls) - JPA Metamodel's method

Method
javax.persistence.metamodel.Metamodel
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:
JPA 2.0