Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jOOQ, Java - how to import generated java files?

I'm in the 4th step of this tutorial: http://www.jooq.org/doc/3.3/manual/getting-started/tutorials/jooq-in-7-steps/jooq-in-7-steps-step4/

I generated files from step 3 and put them in src directory in my Java project but it seems that IDE can't find it:

enter image description here

enter image description here

like image 768
Defozo Avatar asked Nov 14 '25 11:11

Defozo


1 Answers

If you don't want to repeat the steps mentioned in your workaround every time, you should probably change your jOOQ code generation configuration to generate classes in your desired location:

<configuration>
  ...
  <generator>
    ...
    <target>
      <!-- use the appropriate location here -->
      <directory>src/main/java</directory>
      ...
    </target>
  </generator>
</configuration>
like image 63
Lukas Eder Avatar answered Nov 17 '25 08:11

Lukas Eder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!