Example usage for Java org.hibernate.boot MetadataSources fields, constructors, methods, implement or subclass
The text is from its open source code.
MetadataSources(ServiceRegistry serviceRegistry) Create a metadata sources using the specified service registry. | |
MetadataSources() |
MetadataSources | addAnnotatedClass(Class annotatedClass) Read metadata from the annotations attached to the given class. |
MetadataSources | addAnnotatedClassName(String annotatedClassName) Read metadata from the annotations attached to the given class. |
MetadataSources | addFile(String path) Read mappings from a particular XML file |
MetadataSources | addFile(File file) Read mappings from a particular XML file |
MetadataSources | addPackage(String packageName) Read package-level metadata. |
MetadataSources | addPackage(Package packageRef) Read package-level metadata. |
MetadataSources | addResource(String name) Read mappings as a application resourceName (i.e. |
Metadata | buildMetadata() Short-hand form of calling #getMetadataBuilder() and using its org.hibernate.boot.MetadataBuilder#build() method in cases where the application wants to accept the defaults. |
Metadata | buildMetadata(StandardServiceRegistry serviceRegistry) |
Collection | getAnnotatedClasses() |
MetadataBuilder | getMetadataBuilder() Get a builder for metadata where non-default options can be specified. |
MetadataBuilder | getMetadataBuilder(StandardServiceRegistry serviceRegistry) Get a builder for metadata where non-default options can be specified. |
ServiceRegistry | getServiceRegistry() |