Interface IEntity
- All Superinterfaces:
Comparable<IManagedType>
,IManagedType
The external representation of the managed type that is annotated with
@jakarta.persistence.Entity
.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
- Since:
- 2.3
- Version:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of this entity.getNamedQuery
(String queryName) Returns the external form of the given named query;Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.eclipse.persistence.jpa.jpql.tools.spi.IManagedType
accept, getMappingNamed, getProvider, getType, mappings
-
Method Details
-
getName
String getName()Returns the name of this entity.- Returns:
- The non-default name or the short class name of this entity
-
getNamedQuery
Returns the external form of the given named query;- Parameters:
queryName
- The name of the JPQL query to retrieve- Returns:
- The
IQuery
representing the JPQL query named with the given name; ornull
if none could be found
-