Which, I couldn't quite figure out why Eclipse Galileo's JPA validator would say so, as my class 'X' clearly had an @Id annotation on the primary key "uniqueId". The error would disappear if I commented out the @Basic annotation line, but that didn't quite make sense. Anyway, attaching snippet below from memory:
@Entity
class X {
...
@Id
@Basic(optional=false)
@Column(name="someUniqueId", unique=false)
String uniqueId;
...
}
Is this a bug, or is there a JPA standard which I'm not aware of on the use of annotations?