本文整理汇总了Java中org.hibernate.metadata.CollectionMetadata类的典型用法代码示例。如果您正苦于以下问题:Java CollectionMetadata类的具体用法?Java CollectionMetadata怎么用?Java CollectionMetadata使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CollectionMetadata类属于org.hibernate.metadata包,在下文中一共展示了CollectionMetadata类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createPropertyDefinition
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
private IPropertyDefinition createPropertyDefinition(String propertyName, Type propertyType, ClassMetadata metaData) {
IPropertyDefinition propertyDef;
if (propertyType.isCollectionType()) {
CollectionType colType = (CollectionType) propertyType;
CollectionMetadata colMetaData = sessionFactory.getCollectionMetadata(colType.getRole());
propertyDef = new HibernateAnnotationsMixedCollectionPropertyDefinitionImpl(metaData, propertyName, colMetaData);
} else {
propertyDef = new HibernateAnnotationsMixedPropertyDefinitionImpl(metaData, propertyName);
}
return propertyDef;
}
示例2: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public CollectionMetadata getCollectionMetadata(String roleName) {
return sessionFactoryImplementor.getCollectionMetadata(roleName);
}
示例3: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
@Override
public CollectionMetadata getCollectionMetadata() {
return this;
}
示例4: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException {
return collectionMetadata.get(roleName);
}
示例5: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public CollectionMetadata getCollectionMetadata(String roleName)
throws HibernateException {
return delegate.getCollectionMetadata(roleName);
}
示例6: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public CollectionMetadata getCollectionMetadata(String arg0) throws HibernateException {
return sessionFactory.getCollectionMetadata(arg0);
}
示例7: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException {
return delegateSessionFactory.getCollectionMetadata(roleName);
}
示例8: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public CollectionMetadata getCollectionMetadata() {
return this;
}
示例9: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException {
return getImpl().getCollectionMetadata(roleName);
}
示例10: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public CollectionMetadata getCollectionMetadata(String roleName) throws HibernateException {
return (CollectionMetadata) collectionMetadata.get(roleName);
}
示例11: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
/** {@inheritDoc} */
@Override public CollectionMetadata getCollectionMetadata(String roleName) {
return null;
}
示例12: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public CollectionMetadata getCollectionMetadata(String roleName) {
return getHibernateSessionFactory().getCollectionMetadata(roleName);
}
示例13: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
@Override
public CollectionMetadata getCollectionMetadata(String s) throws HibernateException {
return original.getCollectionMetadata(s);
}
示例14: HibernateAnnotationsMixedCollectionPropertyDefinitionImpl
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public HibernateAnnotationsMixedCollectionPropertyDefinitionImpl(ClassMetadata metaData, String name,
CollectionMetadata collectionMetaData) {
super(metaData, name);
this.collectionMetaData = collectionMetaData;
}
开发者ID:frincon,项目名称:openeos,代码行数:6,代码来源:HibernateAnnotationsMixedCollectionPropertyDefinitionImpl.java
示例15: getCollectionMetadata
import org.hibernate.metadata.CollectionMetadata; //导入依赖的package包/类
public CollectionMetadata getCollectionMetadata(String roleName)
throws HibernateException {
return collectionMetadata.get(roleName);
}