@Entity public static class TheEntity { private Integer id; public boolean isId() { return false; } @Id public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } }
HCANN treats this class as having 2 attributes, one defined by the getId and another defined by the isId, both with the same "attribute name".