diff --git a/Minimal-J/src/main/java/org/minimalj/backend/db/AbstractTable.java b/Minimal-J/src/main/java/org/minimalj/backend/db/AbstractTable.java
index <HASH>..<HASH> 100644
--- a/Minimal-J/src/main/java/org/minimalj/backend/db/AbstractTable.java
+++ b/Minimal-J/src/main/java/org/minimalj/backend/db/AbstractTable.java
@@ -367,7 +367,7 @@ public abstract class AbstractTable<T> {
 		try (ResultSet resultSet = preparedStatement.executeQuery()) {

 			while (resultSet.next() && result.size() < maxResults) {

 				T object = readResultSetRow(resultSet, null);

-				if (this instanceof Table) {

+				if (this instanceof Table && !(this instanceof CodeTable)) {

 					long id = IdUtils.getId(object);

 					((Table<T>) this).loadRelations(object, id);

 				}
AbstractTable: no relations for Codes