本文整理汇总了Java中org.hibernate.mapping.Set类的典型用法代码示例。如果您正苦于以下问题:Java Set类的具体用法?Java Set怎么用?Java Set使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Set类属于org.hibernate.mapping包,在下文中一共展示了Set类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testProperCallbacks
import org.hibernate.mapping.Set; //导入依赖的package包/类
public void testProperCallbacks() {
ValueVisitor vv = new ValueVisitorValidator();
new Any(new Table()).accept(vv);
new Array(new RootClass()).accept(vv);
new Bag(new RootClass()).accept(vv);
new Component(new RootClass()).accept(vv);
new DependantValue(null,null).accept(vv);
new IdentifierBag(null).accept(vv);
new List(null).accept(vv);
new ManyToOne(null).accept(vv);
new Map(null).accept(vv);
new OneToMany(null).accept(vv);
new OneToOne(null, new RootClass() ).accept(vv);
new PrimitiveArray(null).accept(vv);
new Set(null).accept(vv);
new SimpleValue().accept(vv);
}
示例2: getNestedInnerComponentNames
import org.hibernate.mapping.Set; //导入依赖的package包/类
public List<String> getNestedInnerComponentNames(String parentClassname, String topLevelComponentName,
String nestedComponentName, String innerComponentNamePrefix) {
List<String> names = new ArrayList<String>();
PersistentClass parent = configuration.getClassMapping(parentClassname);
Property topLevelProperty = parent.getProperty(topLevelComponentName);
Component topLevelComponent = (Component) topLevelProperty.getValue();
Property nestedProperty = topLevelComponent.getProperty(nestedComponentName);
Set nestedSet = (Set) nestedProperty.getValue();
Component nestedComponent = (Component) nestedSet.getElement();
Iterator<?> propertyIter = nestedComponent.getPropertyIterator();
while (propertyIter.hasNext()) {
Property prop = (Property) propertyIter.next();
if (prop.getName().startsWith(innerComponentNamePrefix)) {
names.add(prop.getName());
}
}
return names;
}
示例3: create
import org.hibernate.mapping.Set; //导入依赖的package包/类
public Collection create(Element node, String path, PersistentClass owner,
Mappings mappings, java.util.Map inheritedMetas) throws MappingException {
Set set = new Set( mappings, owner );
bindCollection( node, set, owner.getEntityName(), path, mappings, inheritedMetas );
return set;
}
示例4: create
import org.hibernate.mapping.Set; //导入依赖的package包/类
public Collection create(Element node, String path, PersistentClass owner,
Mappings mappings, java.util.Map inheritedMetas) throws MappingException {
Set set = new Set( owner );
bindCollection( node, set, owner.getEntityName(), path, mappings, inheritedMetas );
return set;
}
示例5: accept
import org.hibernate.mapping.Set; //导入依赖的package包/类
public Object accept(Set set) {
return validate(Set.class, set);
}