title: how to force ejb3 to reload value from data base and not use those of the context
body: <p>Hello here I have a big problem that I hope to find help
  here I have two entities</p>
  
  <p><code>
  @Entity</p>
  
  <p>@Inheritance(strategy=InheritanceType.JOINED)</p>
  
  <p>@DiscriminatorColumn(name="Role", discriminatorType=DiscriminatorType.STRING)
  public class Utilisateur implements Serializable {</p>
  
  <p>private static final long serialVersionUID = 1L;</p>
  
  <pre><code>@Id
  
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  
  @Column(name="id")
  private Long id;
  @Column(name="nom",nullable=false)
  private String nom;
  
  
  @Column(name="Role",nullable=false, insertable=false)
  private String Role ;
  </code></pre>
  
  <p>//...
  }</p>
  
  <p></code></p>
  
  <pre><code>@Entity
  </code></pre>
  
  <p>@Table(name="ResCom")
  @DiscriminatorValue("ResCom")
  public class ResCom extends Utilisateur {</p>
  
  <p>/...</p>
  
  <p>}</p>
  
  <p>the first thing I do</p>
  
  <pre><code>ResCom rsCom= new ResCom(nom,prenom, email,civilite,
                       SysQl.crypePasse(pass));
   gr.create(rsCom);
  </code></pre>
  
  <p>I check my database I see that property is ResCom insert</p>
  
  <p>but when I check the value of role I get null </p>
  
  <pre><code> Utilisateur tets= gr.findByEmail(email);
  
      message=tets.getEmail()+" and Role :"+tets.getRole()+"";
  </code></pre>
  
  <p>but in my bass it ResCom !!!!!</p>
  
  <p><img src="https://i.stack.imgur.com/7wyMh.jpg" alt="alt text"></p>
  
  <p>the problem disappears when I deploy the project again</p>
  
  <p>I hope you have a solution</p>
  
  <p>And thank you in advance</p>
  
  <p>sorry for my English</p>