--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/6eca1697-beef-4c63-921a-757cdcf0d8a7n%40googlegroups.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/At5WzUp-1Po/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO5JqTBn1hKXcMVrCzHcFqodY%3D1zF0Xub6XW0J-ReAx_yg%40mail.gmail.com.
Hi Lukas, and thanks for your reply. This helps a lot.I used jOOQ In the past with code generation and I understand the benefits especially in terms of type information and type safety.
In terms of type safety, would it be possible to fail (exception) when there is no default mapping available?
And would there be a way to implement a RecordUnmapper where one only needs to map fields that do not match automatically?
Or would it be better to use another tool - like MapStruct - to map from Continent POJO to ContinentRecord?
--
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/At5WzUp-1Po/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO7Kr1duM_cyv8yRTaKC-E8-gnfw10bgiWncYjz7UjTQTQ%40mail.gmail.com.
Related to generating the schema ddl I found there is the dsl.ddl(schema) method of jooq.
I noticed it generates the ddl in the order:create table country ...create index ...alter table country add constraint CONSTRAINT_2E foreign key (continent_id) references continent (id)which causes:> SQL [alter table country add constraint CONSTRAINT_2E foreign key (continent_id) references continent (id)]; [SQLITE_ERROR] SQL error or missing database (near "constraint": syntax error)
PS: I understand that for creating the constraints inline in the create table statement, the order of the tables is important.And I also see that when using the DDLDatabase in the codegen there is no order maintained in the generated schema class.So not sure if this can work at all.
--
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/At5WzUp-1Po/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/CAB4ELO7KcYd-2%2Br0DLvM--kzAvS1Vg9r8Y34Gm2LOx216dMJkA%40mail.gmail.com.
Thanks Lukas,I created https://github.com/jOOQ/jOOQ/issues/16470 for this.> We can do a topological sort.That sounds hopeful! Not sure how to do it, so if there is anything you share that would be great.