以下のコードはお金のために使用されていますが、BigDecimalでなければなりませんが、hbmファイルを同期してこれらのクラスを作成しようとすると、BigDecimalではなくInteger型が生成されます。私の要件に応じてベースクラスを作成することができません
public void setCompanyToUsRate (java.lang.Integer _companyToUsRate) {
this._companyToUsRate = _companyToUsRate;
}
引数としてBigDecimalが必要です。 私のhbm.xmlは以下の通りです:あなたは自分の方法でのBigDecimal型を使用する場合
<property name="SaCode" column="SA_CODE" type="string" not-null="false" length="8" unique="false" update="true" insert="true" />
<property name="Method" column="METHOD" type="string" not-null="false" length="16" unique="false" update="true" insert="true" />
<property name="ServiceTaxIva" column="SERVICE_TAX_IVA" type="integer" not-null="false" length="22" unique="false" update="true" insert="true" />
はどのようにあなたのHBMファイルが見えますか? – home
@SatishMishra:このようなことをコメントに書き込むのではなく、あなたの投稿を次回編集してください! – quaylar