私は休止状態と春を使用しています。これは私のモデルクラスです
@Entity
@NamedNativeQueries({@NamedNativeQuery(
        name = "CSI_TARGET", 
        query = "select * from CSITARGET('CSIINDEX',2)",
        resultClass = CSITarget.class)})
public class CSITarget {
    @Column(name="csi_target")
    private BigDecimal csi_target;
    @Id
    @Column(name="financialyearfrom"  ,nullable = true)
    private int  financialyearfrom =0;
    @Column( name="at_yearhalf" , nullable = true)
    private  String at_yearhalf = "";
    public BigDecimal getCsi_target() {
        return csi_target;
    }
    public void setCsi_target(BigDecimal csi_target) {
        this.csi_target = csi_target;
    }
    public int getFinancialyearfrom() {
        return financialyearfrom;
    }
    public void setFinancialyearfrom(int financialyearfrom) {
        this.financialyearfrom = financialyearfrom;
    }
    public String getAt_yearhalf() {
        return at_yearhalf;
    }
    public void setAt_yearhalf(String at_yearhalf) {
        this.at_yearhalf = at_yearhalf;
    }
Hibernate を使用して postgres データベースのストアド プロシージャを呼び出しています。ストアド プロシージャは、このモデル クラスにマップされたテーブルを返します。今私の問題は、データベースから返されたテーブルに null 値が含まれていることです。データを操作する必要があります。現在、null 値が Bean クラスにマップされているため、null ポインター例外が発生しています。休止状態でデータベースの null 値を無視し、Bean クラスの対応するプロパティにデフォルト値を設定するにはどうすればよいですか。ご覧のとおり、nullable プロパティも使用しています。うまくいきません。