protected boolean isPrimaryKeyColumn(RelationalPath<?> parent, Path<?> property) {
        return parent.getPrimaryKey() != null
            && parent.getPrimaryKey().getLocalColumns().contains(property);
    }
Abstract base class for Mapper implementations

@author tiwe

@param <T>
querydsl-sql/src/main/java/com/querydsl/sql/dml/AbstractMapper.java