예제 #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();
 }