hibernate3.0复合主键出现如下警告

WARN HbmBinder:422 - Could not perform validation checks for component as the class com.cader.bean.TDiagComparingId was not found

我的项目在启动时,每次都会出现以上警告.这只是其中一个警告,与之一样的警告有7个,都是复合主键的问题.可是程序起来,运行一切正常.就是启动时看着不爽.谁可以把这个警告去掉!


TDiagComparing代码:
 package com.cader.bean;
public class TDiagComparing implements java.io.Serializable {

	private TDiagComparingId id;
    private String DiagCorrespondence;
    
	public TDiagComparingId getId() {
		return id;
	}
	public void setId(TDiagComparingId id) {
		this.id = id;
	}
	public String getDiagCorrespondence() {
		return DiagCorrespondence;
	}
	public void setDiagCorrespondence(String diagCorrespondence) {
		DiagCorrespondence = diagCorrespondence;
	}
    
 
}

TDiagComparingId代码:
package com.cader.bean;

public class TDiagComparingId implements java.io.Serializable{
	
	private String patientId;
	private Integer visitId;
	private String diagCompareGroup;
	public String getPatientId() {
		return patientId;
	}
	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	public Integer getVisitId() {
		return visitId;
	}
	public void setVisitId(Integer visitId) {
		this.visitId = visitId;
	}
	public String getDiagCompareGroup() {
		return diagCompareGroup;
	}
	public void setDiagCompareGroup(String diagCompareGroup) {
		this.diagCompareGroup = diagCompareGroup;
	}
}



你可能感兴趣的:(java,bean)