4 Replies Latest reply on Sep 19, 2008 7:38 AM by Jens Weintraut

    Entity Bean: @Name needed?

    Jens Weintraut Apprentice


      maybe this is a more or less dumb question: Is it necessary to annotate entity beans with @Name?
      @Name tells Seam to instantiate an object of this entity whenever it is referenced. But as I'm thinking about I'm pretty sure that I don't access a plain entity on my pages. Whether there is a h:dataTable which iterates over entity beans or - especially with user - a special component is set up by another bean and so on.

      So I wonder if it's just fine to remove the @Name respectively is there any special reason why an entity should be annotated with @Name?