<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # The &lt;javaTypeResolver&gt; Element The &lt;javaTypeResolver&gt; element is used to define properties of the Java Type Resolver. The Java Type Resolver is used to calculate Java types from database column information. The default Java Type Resolver attempts to make JDBC DECIMAL and NUMERIC types easier to use by substituting Integral types if possible (Long, Integer, Short, etc.) If this behavior is undesirable, set the property "forceBigDecimals" to "true". You can also substitute your own implementation if you want different behavior than the default. This element is an optional child element of the [&lt;context&gt;](context.html) element. ## 必選屬性 無 ## 可選屬性 | 屬性 | 描述 | | --- | --- | | type | This can be used to specify a user provided Java Type Resolver. The class must implement the interface `org.mybatis.generator.api.JavaTypeResolver`, 必須有一個公開默認的構造函數。. The attribute also accepts the special value DEFAULT in which case the default implementation will be used (this has the same effect as not specifying the type). | ## 子元素 * [&lt;property&gt;](property.html) (0..N) ## 支持的屬性 下面的表格列出了所有可用的 [&lt;property&gt;](property.html) 子元素: | 屬性名 | 屬性值 | | --- | --- | | forceBigDecimals | This property is used to specify whether MyBatis Generator should force the use of `java.math.BigDecimal` for DECIMAL and NUMERIC fields, rather than substituting integral types when possible. 這個屬性有以下可選值: | | | false _這是默認值_ 當這個屬性是false或者沒有指定時, the default Java type resolver will attempt to make JDBC DECIMAL and NUMERIC types easier to work with by substituting Integral types if possible. The substitution rules are as follows: | | | If the scale is greater then zero, or the length is greater than 18, then the java.math.BigDecimal type will be used | | | If the scale is zero, and the length is 10 through 18, then the Java type resolver will substitute a java.lang.Long. | | | If the scale is zero, and the length is 5 through 9, then the Java type resolver will substitute a java.lang.Integer. | | | If the scale is zero, and the length is less than 5, then the Java type resolver will substitute a java.lang.Short. | | | true 當這個屬性是true時, the Java type resolver will always use java.math.BigDecimal if the database column is of type DECIMAL or NUMERIC. | ## 示例 This element specifies that we always want to use the java.math.BigDecimal type for DECIMAL and NUMERIC columns: ``` <javaTypeResolver> <property name="forceBigDecimals" value="true" /> </javaTypeResolver> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看