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);
}
// ...
}
--
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 jooq-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
// skipped jdbc
Converter<UUID, MyUuid> uuidToMyUuid = Converter.of(
UUID.class,
MyUuid.class,
MyUuid::create,
myUuid -> UUID.fromString(myUuid.asString())
);
Configuration configuration =
new Configuration()
.withJdbc(jdbc)
.withGenerator(new Generator()
.withStrategy(new Strategy()
.withName(DefaultGeneratorStrategy.class.getName()))
.withDatabase(new Database()
.withIncludes(".*")
.withExcludes("")
.withInputSchema("public")
.withCustomTypes(
new CustomType()
.withName(uuidToMyUuid.toType().getName())
.withType(uuidToMyUuid.toType().getName())
.withConverter(uuidToMyUuid.getClass().getName())
)
.withForcedTypes(
new ForcedType()
.withName(uuidToMyUuid.toType().getName())
.withTypes("UUID")
)
)
.withGenerate(new Generate()
.withDaos(false)
.withPojos(false)
.withRecords(true)
.withInterfaces(false)
)
.withTarget(new Target()
.withPackageName("")
.withDirectory("../src/main/java"))
);
GenerationTool.generate(configuration);
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "jOOQ User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jooq-user/53RZqoewa3g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "jOOQ User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jooq-user/53RZqoewa3g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Mit freundlichen Grüssen
Kirusanth Poopalasingam
--
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 jooq-user+unsubscribe@googlegroups.com.