Class AppfuseTypeContributor
java.lang.Object
io.leandev.appfuse.internal.jpa.AppfuseTypeContributor
- All Implemented Interfaces:
org.hibernate.boot.model.TypeContributor
public class AppfuseTypeContributor
extends Object
implements org.hibernate.boot.model.TypeContributor
以 ServiceLoader 向 Hibernate 註冊框架提供的基本型別映射。
應用的 entity scan 通常只涵蓋自己的 package;經由 TypeContributor 註冊,
框架映射不依賴掃描範圍即可生效。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontribute(org.hibernate.boot.model.TypeContributions typeContributions, org.hibernate.service.ServiceRegistry serviceRegistry)
-
Constructor Details
-
AppfuseTypeContributor
public AppfuseTypeContributor()
-
-
Method Details
-
contribute
public void contribute(org.hibernate.boot.model.TypeContributions typeContributions, org.hibernate.service.ServiceRegistry serviceRegistry) - Specified by:
contributein interfaceorg.hibernate.boot.model.TypeContributor
-