I am running JBoss 4.0.4 GA and Eclipse 3.2.0. There is a need for me to use field-based access. I have my class look like:
@Id public Long myid;
But Eclipse complain about it: "Entity does not have an Id". However, after I changed the modifier from public to protected, the complaint disappeared. So is it something that ejb3 doesn't allow id to be public?