Mercurial > hg > openmind
changeset 105:94d354107165
Skip attributes called "id" in the CSV export.
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 26 Apr 2019 17:04:07 +0200 |
parents | 8ce343218005 |
children | 93c7dbfaf062 |
files | src/main/java/org/mpi/openmind/repository/utils/CsvEntityListWriter.java |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/repository/utils/CsvEntityListWriter.java Thu Dec 20 19:15:45 2018 +0100 +++ b/src/main/java/org/mpi/openmind/repository/utils/CsvEntityListWriter.java Fri Apr 26 17:04:07 2019 +0200 @@ -32,7 +32,10 @@ */ for (Entity entity : entities) { for (Attribute att : entity.getAttributes()) { - attNameSet.add(att.getName()); + String name = att.getName(); + // skip id attribute + if (name.equals("id")) continue; + attNameSet.add(name); } } String[] attNames = attNameSet.toArray(new String[attNameSet.size()]);