public void validate(Mapping mapping) throws MappingException { super.validate(mapping); if ( key!=null && !key.isValid(mapping) ) { throw new MappingException( "subclass key mapping has wrong number of columns: " + getEntityName() + " type: " + key.getType().getName()
public void validate(Mapping mapping) throws MappingException { super.validate(mapping); if ( key!=null && !key.isValid(mapping) ) { throw new MappingException( "subclass key mapping has wrong number of columns: " + getEntityName() + " type: " + key.getType().getName()
Clone fragments detected by clone detection tool
File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/JoinedSubclass.java File path: /hibernate-distribution-3.3.2.GA/project/core/src/main/java/org/hibernate/mapping/UnionSubclass.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void validate(Mapping mapping) throws MappingException {
1
public void validate(Mapping mapping) throws MappingException {
2
		super.validate(mapping);
2
		super.validate(mapping);
3
		if ( key!=null && !key.isValid(mapping) ) {
3
		if ( key!=null && !key.isValid(mapping) ) {
4
			throw new MappingException(
4
			throw new MappingException(
5
					"subclass key mapping has wrong number of columns: " +
5
				"subclass key mapping has wrong number of columns: " +
6
					getEntityName() +
6
				getEntityName() +
7
					" type: " +
7
				" type: " +
8
					key.getType().getName()
8
				key.getType().getName()
9
				
9
			
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0