0 Replies Latest reply on Mar 3, 2008 4:53 AM by Ziphyre Marco

    field vs property based persistence

    Ziphyre Marco Newbie

      Hi,

      Is it possible to use property based persistence while annotating private fields?
      Something like:

      @Entity
      public class Foo {
      
       @Id @GeneratedValue
       private Long id;
      
       ....
      
       public Long getId() { ... }
       public void setId() { ... }
      }


      Thanks