Hello Lukas,

First, thank you for creating jOOQ ( and giving a serious alternative to 
JPA / Hibernate). We use jOOQ heavily in our projects.

For primary and foreign keys, we have a custom UUID class with generics 
like MyUuid<T> and added a Converter from java.util.UUID to our MyUuid.

With the generic-MyUuid, you get an additional type safety. Now the problem 
is, that the converter does not respect the generic type and generates 
Methods like:

public class MyTableRecord ... {
  // ...
 public void setId(MyUuid value) { // better: setId(MyUuid<MyTableRecord> 
value)
 setValue(0, value);
 }


 public void setOtherFk(MyUuid value) { // better: 
setOtherFk(MyUuid<OtherRecord> 
value)
 setValue(6, value);
  }
  // ...
}



Is there a way to hook into the code-generation process to set the generic 
types-correctly.

( Tested with jOOQ 3.9.1 and PG 9.1)

Thank you,
Kiru

-- 
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.

Reply via email to