1 | private void checkColumnDuplication(java.util.Set distinctColumns, Iterator columns)↵ | | 1 | protected void checkColumnDuplication(Set distinctColumns, Iterator columns) ↵
|
2 | throws MappingException {↵ | | 2 | throws MappingException {↵
|
3 | while ( columns.hasNext() ) {↵ | | 3 | while ( columns.hasNext() ) {↵
|
4 | Selectable s = (Selectable) columns.next();↵ | | 4 | Selectable columnOrFormula = (Selectable) columns.next();↵
|
5 | if ( !s.isFormula() ) {↵ | | 5 | if ( !columnOrFormula.isFormula() ) {↵
|
6 | Column col = (Column) s;↵ | | 6 | Column col = (Column) columnOrFormula;↵
|
7 | if ( !distinctColumns.add( col.getName() ) ) {↵ | | 7 | if ( !distinctColumns.add( col.getName() ) ) {↵
|
8 | throw new MappingException( ↵ | | 8 | throw new MappingException( ↵
|
9 | "Repeated column in mapping for collection: "↵ | | 9 | "Repeated column in mapping for entity: " +↵
|
10 | + getRole()↵ | | 10 | getEntityName() +↵
|
11 | + " column: "↵ | | 11 | " column: " +↵
|
12 | + col.getName() );↵ | | 12 | col.getName() ↵
|
| | | 13 | + ↵
|
| | | 14 | " (should be mapped with insert=\"false\" update=\"false\")"↵
|
13 | | | 15 |
|