Changed @Basic annotation of Id field. Removed optional=false clause. OpenJPA error went away.