中间表多字段且联合主键-java实体类

public class C {
	private CID idCid;
	private String status;
	public CID getIdCid() {
		return idCid;
	}
	public void setIdCid(CID idCid) {
		this.idCid = idCid;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
}

public class CID {
	private Long AID;
	private Long BID;
	public Long getAID() {
		return AID;
	}
	public void setAID(Long aid) {
		AID = aid;
	}
	public Long getBID() {
		return BID;
	}
	public void setBID(Long bid) {
		BID = bid;
	}
	
}

你可能感兴趣的:(java)