Спасибо большое, все отлично работает.
Вот мой новый код.
@ Entity
открытый класс ArticleCode {
@Id
private Key id;
@Column(name="codingSystem")
private String codingSystem;
@Column(name="code")
private String code;
public ArticleCode(Key parent, String codingSystem, String code) {
this.id = KeyFactory.createKey(parent, ArticleCode.class.getSimpleName(), codingSystem + code);
this.codingSystem = codingSystem;
this.code = code;
}