### Configure Graphitron Maven Plugin Source: https://graphitron.sikt.no/docs/quick_start_guide Add the plugin to your pom.xml to process GraphQL schema files and generate resolvers. ```xml no.sikt graphitron-maven-plugin ${versions.graphitron} ${project.basedir}/schema.graphql ${generatedJooqPackage} ${generatedGraphitronPackage} generate-with-graphitron generate-sources generate ``` -------------------------------- ### Configure jOOQ Code Generator in Maven Source: https://graphitron.sikt.no/docs/quick_start_guide Add this plugin configuration to your pom.xml to generate Java classes from a PostgreSQL database schema. ```xml org.jooq jooq-codegen-maven jooq-code-generator generate-sources generate org.postgresql.Driver ${db.url} ${db.username} ${db.password} public ${generatedJooqPackage} target/generated-sources/jooq org.postgresql postgresql ${version.postgresql} ``` -------------------------------- ### Define GraphQL Schema with Directives Source: https://graphitron.sikt.no/docs/quick_start_guide Use @table and @field directives to map GraphQL types to your database model. ```graphql type Query { customers: [Customer] } type Customer @table { id: ID firstName: String! @field(name: "FIRST_NAME") lastName: String! @field(name: "LAST_NAME") email: String address: Address! } type Address @table { id: ID addressLine1: String! @field(name: "ADDRESS_") addressLine2: String @field(name: "ADDRESS2") zip: String @field(name: "POSTAL_CODE") phone: String! } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.