File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
main/java/org/javalite/activejdbc
test/java/org/javalite/activejdbc Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,12 @@ Class<? extends Model> getModelClass(String tableName) {
69
69
}
70
70
71
71
String getTableName (Class <? extends Model > modelClass ) {
72
- MetaModel mm = metaModelsByClass .get (modelClass );
72
+ MetaModel mm = null ;
73
+ for (Class <? extends Model > clazz : metaModelsByClass .keySet ()){
74
+ if (modelClass .getName ().equals (clazz .getName ())){
75
+ mm = metaModelsByClass .get (clazz );
76
+ }
77
+ }
73
78
return mm == null ? null : mm .getTableName ();
74
79
}
75
80
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public void shouldPrintJsonLogValuesAndParams(){
34
34
String log = SystemStreamUtil .getSystemErr ();
35
35
SystemStreamUtil .restoreSystemErr ();
36
36
37
+ System .out .println (log );
37
38
//Lets test what was logged.
38
39
String [] parts = log .split ("LazyList -" );
39
40
String json = parts [1 ];
You can’t perform that action at this time.
0 commit comments