@SuppressWarnings({"unchecked"}) private String searchMappedByKey(PersistentClass referencedClass, Collection collectionValue) { final Iterator<Value> assocIdClassProps = referencedClass.getKeyClosureIterator(); while ( assocIdClassProps.hasNext() ) { final Value value = assocIdClassProps.next(); // make sure its a 'Component' because IdClass is registered as this type. if ( value instanceof Component ) { final Component component = (Component) value; final Iterator<Property> componentPropertyIterator = component.getPropertyIterator(); while ( componentPropertyIterator.hasNext() ) { final Property property = componentPropertyIterator.next(); final Iterator<Selectable> propertySelectables = property.getValue().getColumnIterator(); final Iterator<Selectable> collectionSelectables = collectionValue.getKey().getColumnIterator(); if ( Tools.iteratorsContentEqual( propertySelectables, collectionSelectables ) ) { return property.getName(); } } } } return null; }
public Iterator getKeyClosureIterator() { return new JoinedIterator( getSuperclass().getKeyClosureIterator(), new SingletonIterator( getKey() ) ); } protected void addSubclassProperty(Property p) {
ArrayList<Boolean> cascadeDeletes = new ArrayList<Boolean>(); Iterator tItr = persistentClass.getTableClosureIterator(); Iterator kItr = persistentClass.getKeyClosureIterator(); while ( tItr.hasNext() ) { final Table table = (Table) tItr.next();
@SuppressWarnings({"unchecked"}) private String searchMappedByKey(PersistentClass referencedClass, Collection collectionValue) { final Iterator<Value> assocIdClassProps = referencedClass.getKeyClosureIterator(); while ( assocIdClassProps.hasNext() ) { final Value value = assocIdClassProps.next(); // make sure its a 'Component' because IdClass is registered as this type. if ( value instanceof Component ) { final Component component = (Component) value; List<PersistentAttributeMapping> declaredPersistentAttributes = component.getDeclaredPersistentAttributes(); for ( PersistentAttributeMapping attribute : declaredPersistentAttributes ) { if ( ( (List<MappedColumn>) attribute.getValueMapping().getMappedColumns() ) .equals( collectionValue.getKey().getMappedColumns() ) ) { return attribute.getName(); } } } } return null; }
public Iterator getKeyClosureIterator() { return new JoinedIterator( getSuperclass().getKeyClosureIterator(), new SingletonIterator( getKey() ) ); } protected void addSubclassProperty(Property p) {
public Iterator getKeyClosureIterator() { return new JoinedIterator( getSuperclass().getKeyClosureIterator(), new SingletonIterator( getKey() ) ); }
public Iterator getKeyClosureIterator() { return new JoinedIterator( getSuperclass().getKeyClosureIterator(), new SingletonIterator( getKey() ) ); } protected void addSubclassProperty(Property p) {
public Iterator getKeyClosureIterator() { return new JoinedIterator( getSuperclass().getKeyClosureIterator(), new SingletonIterator( getKey() ) ); } protected void addSubclassProperty(Property p) {
public Iterator getKeyClosureIterator() { return new JoinedIterator( getSuperclass().getKeyClosureIterator(), new SingletonIterator( getKey() ) ); } protected void addSubclassProperty(Property p) {
ArrayList cascadeDeletes = new ArrayList(); Iterator titer = persistentClass.getTableClosureIterator(); Iterator kiter = persistentClass.getKeyClosureIterator(); while ( titer.hasNext() ) { Table tab = (Table) titer.next();
ArrayList cascadeDeletes = new ArrayList(); Iterator titer = persistentClass.getTableClosureIterator(); Iterator kiter = persistentClass.getKeyClosureIterator(); while ( titer.hasNext() ) { Table tab = (Table) titer.next();
ArrayList cascadeDeletes = new ArrayList(); Iterator titer = persistentClass.getTableClosureIterator(); Iterator kiter = persistentClass.getKeyClosureIterator(); while ( titer.hasNext() ) { Table tab = (Table) titer.next();
ArrayList cascadeDeletes = new ArrayList(); Iterator titer = persistentClass.getTableClosureIterator(); Iterator kiter = persistentClass.getKeyClosureIterator(); while ( titer.hasNext() ) { Table tab = (Table) titer.next();