|
@@ -7,7 +7,7 @@ import java.sql.SQLException;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
-import db.Table;
|
|
|
+import db.DatabaseTable;
|
|
|
import db.annotation.DbField;
|
|
|
import db.annotation.DbLink;
|
|
|
import db.annotation.DbTable;
|
|
@@ -38,7 +38,7 @@ public class DbMapper {
|
|
|
String className = split[split.length - 1];
|
|
|
// Chargement de la class Table qui gère l'entité
|
|
|
Class<?> clazz = Class.forName(field.getAnnotation(DbLink.class).value() + "." + className + "Table");
|
|
|
- Table table = (Table) clazz.getMethod("getInstance").invoke(null);
|
|
|
+ DatabaseTable table = (DatabaseTable) clazz.getMethod("getInstance").invoke(null);
|
|
|
value = table.getById(otherId);
|
|
|
}
|
|
|
}
|
|
@@ -78,7 +78,7 @@ public class DbMapper {
|
|
|
String className = split[split.length - 1];
|
|
|
// Chargement de la class Table qui gère l'entité
|
|
|
Class<?> clazz = Class.forName(field.getAnnotation(DbLink.class).value() + "." + className + "Table");
|
|
|
- Table table = (Table) clazz.getMethod("getInstance").invoke(null);
|
|
|
+ DatabaseTable table = (DatabaseTable) clazz.getMethod("getInstance").invoke(null);
|
|
|
val = table.getById(otherId);
|
|
|
}
|
|
|
}
|