Re: DataTypeException using from(Object o) on record.

2012-09-13 Thread Rick van Biljouw
It's rather long so I attached it here. On Thursday, September 13, 2012 12:07:05 PM UTC+2, Lukas Eder wrote: That is a different problem Does your generated LaborTicket class specify an identity column? Can you paste the generated Table class, please? 2012/9/13 Rick van Biljouw rb100

Re: DataTypeException using from(Object o) on record.

2012-09-13 Thread Rick van Biljouw
Alright, I've attached it. On Thursday, September 13, 2012 12:19:39 PM UTC+2, Lukas Eder wrote: It's rather long so I attached it here. I'm sorry, I meant the generated Table class, i.e. com.abbaba.tables.LaborTicket Cheers Lukas /** * This class is generated by jOOQ */ package

Re: DataTypeException using from(Object o) on record.

2012-09-13 Thread Rick van Biljouw
Alright, thanks!

Re: DataTypeException using from(Object o) on record.

2012-09-13 Thread Rick van Biljouw
On Thursday, September 13, 2012 1:08:17 PM UTC+2, Rick van Biljouw wrote: Alright, thanks!

Re: DataTypeException using from(Object o) on record.

2012-09-12 Thread Rick van Biljouw
(entity). As well as the code that is used to produce this problem? Cheers Lukas 2012/9/11 Rick van Biljouw rb100...@gmail.com javascript:: Hi, I'm trying to create a record using POJOs. For that purpose I have the following piece of code: /** * Creates a record

Re: DataTypeException using from(Object o) on record.

2012-09-12 Thread Rick van Biljouw
version of jOOQ 2.5.0 Cheers Lukas 2012/9/12 Rick van Biljouw rb100...@gmail.com javascript:: Hi, A sample T class would be this one: /** * This class is generated by jOOQ */ package nl.abbaba.tables.pojos; /** * This class is generated

Re: DataTypeException using from(Object o) on record.

2012-09-12 Thread Rick van Biljouw
It would seem that the exception occurs because LaborTicketRecord defines a relation with EmployeeRecord on that particular employeeId, since its a foreign key. That doesn't explain why the type is wrongly converted though as it would seem to me that it should actually fetch the relationships

DataTypeException using from(Object o) on record.

2012-09-11 Thread Rick van Biljouw
Hi, I'm trying to create a record using POJOs. For that purpose I have the following piece of code: /** * Creates a record from a POJO. * * @param pojo *POJO to use for record. * @return record */ @SuppressWarnings({ unchecked }) private R extends Record R