コード例 #1
0
 private LocalBindingContextImpl(MetadataImplementor metadata) {
   this.metadata = metadata;
   this.localMappingDefaults =
       new OverriddenMappingDefaults(
           metadata.getMappingDefaults(),
           hbmBindResult.getRoot().getPackage(),
           hbmBindResult.getRoot().getSchema(),
           hbmBindResult.getRoot().getCatalog(),
           null,
           null,
           null,
           hbmBindResult.getRoot().getDefaultCascade(),
           hbmBindResult.getRoot().getDefaultAccess(),
           hbmBindResult.getRoot().isDefaultLazy());
   if (CollectionHelper.isEmpty(hbmBindResult.getRoot().getMeta())) {
     this.metaAttributeContext =
         new MetaAttributeContext(metadata.getGlobalMetaAttributeContext());
   } else {
     this.metaAttributeContext =
         Helper.extractMetaAttributeContext(
             hbmBindResult.getRoot().getMeta(), true, metadata.getGlobalMetaAttributeContext());
   }
 }
コード例 #2
0
 @Override
 public boolean isGloballyQuotedIdentifiers() {
   return metadata.isGloballyQuotedIdentifiers();
 }
コード例 #3
0
 @Override
 public ValueHolder<Class<?>> makeClassReference(String className) {
   return metadata.makeClassReference(className);
 }
コード例 #4
0
 @Override
 public Type makeJavaType(String className) {
   return metadata.makeJavaType(className);
 }
コード例 #5
0
 @Override
 public <T> Class<T> locateClassByName(String name) {
   return metadata.locateClassByName(name);
 }
コード例 #6
0
 @Override
 public NamingStrategy getNamingStrategy() {
   return metadata.getNamingStrategy();
 }
コード例 #7
0
 @Override
 public ServiceRegistry getServiceRegistry() {
   return metadata.getServiceRegistry();
 }