1 Reply Latest reply on Jun 1, 2011 1:55 AM by Aram Nigiyan

    How to restrict access to entity getters and setters

    V Chal Newbie


      is it possible to restrict acces to Entity getters and setters?

      I try an @Restrict annotation, but it has no effect. Getters and Setters can be stil called from JSF page for everyone.

      @Column(name = "name", nullable = false, length = 30)
      @Length(max = 30)
      public String getName() {
           return this.name;

      Thank you very much for response, Vaclav