I am experimenting with entity beans with a simple Integer primary key (no generated class).

The docs are unclear as to the difference between the "@ejb-bean primkey-field" tag (at the class level), and the "@ejb.pk" field (at the method level).

I was initially experimenting with @ejb.pk but it was generating Value Objects which didn't compile. I tried adding the class-level "@ejb-bean primkey-field", and now those compilation problems are gone. But I'm still left wondering what the real difference is between these tags, and when one vs. the other is appropriate?


Reply via email to