LoginSignup
8
7

More than 5 years have passed since last update.

MyBatis Generator で生成するコードにタイムスタンプを含めない

Posted at

Git管理していると、タイムスタンプがあると邪魔なので生成させないようにする。
こんな感じ。

mybatorConfig
<generatorConfiguration>
  <classPathEntry location="${sql.driver.class.path}" />
  <context id="xxx" targetRuntime="MyBatis3" defaultModelType="flat">
    <plugin type="yyy" />
    <commentGenerator>
      <property name="suppressDate" value="true" />
    </commentGenerator>
    <!-- rest -->
  </context>
<generatorConfiguration>

commentGenerator のオプションは ibatisの方 にあった。
commentGenerator要素をどこに書けばよいかは、DTD (http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd) に書いてあった。

8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7