@Entity annotation question
HI,
I have a number of EJB Entity Pojo's indicated by the @Entity annotation.
I want to pass these Entities to business logic and to API's, such
doBusinessLogic(Entity entity1, Entity entity2).
When I try to enforce type safety by typing the methods variable as Entity instances, I get a Java "cannot be applied to" compilation error, which is fair enough. My entities do not implement the javax.persistence.Entity interface, they simply are marked with the @Entity annotation.
What is the solution to this? Is it to make my Entities implement the Entity interface and override the name() method?

