Hi,

I have a sequence in my database, but it's not getting created by the jooq 
generator? but all my tables and keys are generated fine?

I'm using Jooq 3.5.0

The schema.xml contains this:

<sequence>
<sequence_schema/>
<sequence_name>ticket_id_seq</sequence_name>
<data_type>BIGINT</data_type>
</sequence>


and my pom.xml has:

<plugin>
    <groupId>org.jooq</groupId>
    <artifactId>jooq-codegen-maven</artifactId>
    <executions>
        <execution>
            <id>generate-postgres</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>generate</goal>
            </goals>
            <configuration>
                <generator>
                    <name>org.jooq.util.DefaultGenerator</name>
                    <database>
                        <name>org.jooq.util.xml.XMLDatabase</name>
                        <properties>
                            <property>
                                <key>dialect</key>
                                <value>POSTGRES</value>
                            </property>
                            <property>
                                <key>xml-file</key>
                                <value>
                                    
${basedir}/target/generated-resources/xml/xslt/jooq-schema.xml
                                </value>
                            </property>
                        </properties>
                        <inputSchema>public</inputSchema>
                    </database>
                    <generate>
                        <deprecated>false</deprecated>
                        <instanceFields>true</instanceFields>
                        <pojos>true</pojos>
                        <pojosEqualsAndHashCode>true</pojosEqualsAndHashCode>
                        <validationAnnotations>true</validationAnnotations>
                    </generate>
                    <target>
                        <packageName>my.datastore.generated</packageName>
                        
<directory>target/generated-sources/jooq-postgres</directory>
                    </target>
                </generator>
            </configuration>
        </execution>
    </executions>
</plugin>


any thoughts?

Thanks in advance,

Simon

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