It is not your error. You should be able to use integers. That line should
call getObject() and cast to Comparable instead of assuming a String. I will
make this fix and commit soon but you can do so locally too.

On Jul 30, 2009 12:54 AM, "Nico Higgs" <[email protected]> wrote:

Ouch! I'm a stupid!

Yes, I'm using Integers in MySQL (Long types in Java) for the Ids cause I
thought it would be more performant. "Small" thing I forgot to mention
before!!!!

That decision for the ids force me a small change in AbstractJDBCDataModel
in the getUser method (removing String idString = id.toString() in line 226
and using the id in the buildUser at the bottom) and in
AbstractJDBCDiffStorage where I change

String nextResultItemID = rs.getString(3)
with
Comparable<?>nextResultItemID = rs.getString(3);

instead of
Comparable<?> nextResultItemID = (Comparable<?>) rs.getObject(3);
!!!!

When you mention the integers I found my error quickly. Now I fixed the cast
problem and everything is working fine again!

Sorry for the mistake and wasting your time Sean! :(

Kind regards

On Wed, Jul 29, 2009 at 7:47 PM, Sean Owen <[email protected]> wrote: >
Interesting, that is a comp...

Reply via email to