Join hashCode bug
Opened this issue · 1 comments
The second line of hashCode() calls super.hashCode(), which calls Table's hashCode(), which then proceeds to call Util.getFields(this.getClass())... which throws an exception for the Join class.
Stack trace:
WARNING: java.lang.NoSuchFieldException: _FIELDS --- DKO class Join was generated prior to DKO v2.2.0. falling back to FIELDS()...
Exception in thread "main" java.lang.RuntimeException: java.lang.InstantiationException: org.kered.dko.Join
at org.kered.dko.Util.getFIELDS(Util.java:170)
at org.kered.dko.Util.getFields(Util.java:180)
at org.kered.dko.Table.hashCode(Table.java:305)
at org.kered.dko.Join.hashCode(Join.java:175)
at java.util.HashMap.hash(HashMap.java:338)
at java.util.HashMap.put(HashMap.java:611)
at java.util.HashSet.add(HashSet.java:219)
at org.kered.dko.AbstractQuery.asSet(AbstractQuery.java:228)