On Sunday, January 4, 2015 1:55:09 AM UTC-7, Lukas Eder wrote: > > Hi Matt, > > 2015-01-04 5:28 GMT+01:00 <[email protected] <javascript:>>: > >> First off, I'm fairly new to jOOQ - and I have to say that I'm really >> impressed with what I'm finding. Great stuff! >> > > Thanks for your nice words! > > >> But when I execute the following (I'm getting the field name from the >> user, in truth - which is why I'm putting in a String here, by the way): >> >> create.fetchOne(t, t.field("id").equal(id)).into(Test.class) >> > > Just to be sure: What is this "t"? Is it the generated table that contains > Field references that refer to your converter? > >
It is a reference to the generated table, yes. > I get the following exception: >> >> [...] >> Caused by: org.jooq.exception.DataTypeException: Cannot convert from >> 2013-09-20T16:50:47.820Z (class org.joda.time.DateTime) to *class >> java.util.Date* >> at org.jooq.tools.Convert$ConvertAll.fail(Convert.java:873) >> [jooq-3.5.1.jar:] >> at org.jooq.tools.Convert$ConvertAll.from(Convert.java:811) >> [jooq-3.5.1.jar:] >> >> > Where does this java.util.Date come from? jOOQ doesn't know how to convert > from Joda's DateTime to java.util.Date... > And that was the clue I needed - thank you! A search turned up a superclass which had some vestigial code from before jOOQ (that used java.util.Date). Removed that code and it worked immediately. Thanks! Matt > > Cheers, > Lukas > -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
