title: could not get a field value by reflection hibernate
body: <p>I have problem when update object in jpa </p>
  
  <p>i have bean user</p>
  
  <pre><code>public class User {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "id", unique = true, nullable = false)
      private Long id;
      @Column(name = "name", nullable = false)
      private String name;
      @OneToMany(fetch = FetchType.EAGER)
      @JoinColumn(name = "fk_program_rating")
      private List&lt;Rating&gt; ratingList = new ArrayList&lt;Rating&gt;();
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public class Rating extends BaseModel {
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "id", unique = true, nullable = false)
      private Long id;
      @ManyToOne()
      @JoinColumn(name = "fk_program_rating", nullable = false)
      @ForeignKey(name = "FK_prog_rate")
      @OnDelete(action = OnDeleteAction.CASCADE)
      private Program program;
  }
  </code></pre>
  
  <p>when try to update that give me exception :  could not get a field value by reflection 
  that happen when table rating have rows</p>
  
  <blockquote>
    <p>ERROR TransactionInterceptor:434 - Application exception overridden by commit exception
        com.vodafone.visradio.dataaccess.exception.DataAccessException:    org.hibernate.PropertyAccessException: could not get a field value by reflection getter of com.vodafone.visradio.dataaccess.model.Rating.id</p>
  </blockquote>
  
  <p>any help about this problem<br>
   thanks</p>