Package com.broadleafcommerce.common.jpa
Class JpaRepositoryEntityTypeOverride
java.lang.Object
com.broadleafcommerce.common.jpa.JpaRepositoryEntityTypeOverride
- All Implemented Interfaces:
org.springframework.core.Ordered
public class JpaRepositoryEntityTypeOverride
extends Object
implements org.springframework.core.Ordered
Denote that a Broadleaf declared repository should leverage a specific type. This can be any type
that is assignable from the base type declared by the existing Broadleaf repository. This feature
is usually used to specify a more derived extension type of the original Broadleaf entity class,
especially when multiple extensions of the same Broadleaf based entity are being employed with a
different repository supporting each polymorphic variation.
Note, if the
getDomainType()
declared here is itself a supertype of other entities, then
the expectation for the repository fetch results should be that the declared type, and the sub
types, are returned.- Author:
- Jeff Fischer
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
ConstructorDescriptionJpaRepositoryEntityTypeOverride
(Class<?> repositoryInterfaceType, Class<?> domainType) -
Method Summary
-
Constructor Details
-
JpaRepositoryEntityTypeOverride
-
-
Method Details
-
getRepositoryInterfaceType
The JPA repository interface class.- Returns:
- The JPA repository interface class.
-
getDomainType
The type to which fetch results for the repository should be limited.- Returns:
- The type to which fetch results for the repository should be limited.
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceorg.springframework.core.Ordered
- See Also:
-
Ordered.getOrder()
-
setOrder
public void setOrder(int order) - See Also:
-
Ordered.getOrder()
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-