【发布时间】:2020-09-29 19:08:55
【问题描述】:
我有一个 Junit 测试,当我运行它时出现这个错误:
org.dbunit.dataset.NoSuchColumnException: AUTORISATION_BONANZA.ORGANISATION_ID - (Non-uppercase input column: ORGANISATION_ID) in ColumnNameToIndexes cache map. Note that the map's column names are NOT case sensitive.
实体
@Entity
@NoArgsConstructor
@Data
public class AutorisationBonanza implements Serializable {
@Id
@Column(name = "AUTORISATION_BONANZA_ID")
private Long autorisationBonanzaId;
private String pol;
private String nomom;
@ManyToOne
@JoinColumn(name = "ORGANISATION_ID")
private Organisation organisation;
}
数据集:
<AUTORISATION_BONANZA
AUTORISATION_BONANZA_ID="1"
POL="NOM"
NOMOM="PRENOM"
ORGANISATION_ID="1"
/>
和
@Entity
@NoArgsConstructor
@Data
public class Organisation implements Serializable {
@Id
@Column(name = "ORGANISATION_ID")
private Long organisationId;
private String code;
}
【问题讨论】:
标签: java spring-boot junit eclipselink dbunit