diff --git a/src/main/java/caosdb/server/database/DatabaseUtils.java b/src/main/java/caosdb/server/database/DatabaseUtils.java index a5fa2e3c2b81e2f9eb16857457a537e840df40a6..29b8c04c420f7a09c52ad5c541a0cab9fbd9cfb6 100644 --- a/src/main/java/caosdb/server/database/DatabaseUtils.java +++ b/src/main/java/caosdb/server/database/DatabaseUtils.java @@ -216,10 +216,6 @@ public class DatabaseUtils { ret.description = bytes2UTF8(rs.getBytes("EntityDesc")); ret.datatype = bytes2UTF8(rs.getBytes("Datatype")); ret.collection = bytes2UTF8(rs.getBytes("Collection")); - ret.version = bytes2UTF8(rs.getBytes("Version")); - ret.versionSeconds = rs.getLong("VersionSeconds"); - ret.versionNanos = rs.getInt("VersionNanos"); - final String path = bytes2UTF8(rs.getBytes("FilePath")); if (!rs.wasNull()) { @@ -227,6 +223,11 @@ public class DatabaseUtils { ret.fileSize = rs.getLong("FileSize"); ret.fileHash = bytes2UTF8(rs.getBytes("FileHash")); } + + ret.version = bytes2UTF8(rs.getBytes("Version")); + ret.versionSeconds = rs.getLong("VersionSeconds"); + ret.versionNanos = rs.getInt("VersionNanos"); + return ret; }