我想从我的休眠类传递一个用户定义的对象并将其传递给一个存储过程,该过程读取这个对象列表并进行处理。我该怎么做?
类如下。
public class ExcelListenerBean {
private int id;
private String shortName;
private String fmrCusip;
private Double incorrectTrdShares;
private Double incorrectTrdPrice;
private String incorrectTrdBuySell;
private Double incorrectTrdCommRate;
private Double incorrectTrdCommission;
private Double incorrectTrdFees;
private Double incorrectTrdNet;
private Double correctionTrdShares;
private Double correctionTrdPrice;
private String correctionTrdBuySell;
private Double correctionTrdCommRate;
private Double correctionTrdCommission;
private Double correctionTrdFees;
private Double correctionTrdNet;
private String currency;
private String fx;
private Double netUSD;
private String notes;
}
任何人都可以让我知道如何起草程序以及如何遍历 ExcelListenerBean 对象列表并将它们保存到表中。