2 Replies Latest reply on Dec 12, 2008 7:44 AM by Nicole Schweighardt

    Which methods should an Entity contain?

    Nicole Schweighardt Novice


      after reading a lot and seeing some examples I have a question what an entity bean is allowed to contain.

      I have one entity "User" that has a relation to the entity "Role". The question is, can I implement methods like addRole() and removeRole() here or do I have to do this in the session beans? Which is the best way?
      I saw a lot of entities that only contained the setter/getter for their attributes.

      Thank you,