title: update query doesn't work with hibernate Oracle SQL Developer with java entity
body: <p>I want to update this table in the Oracle database with SQL Developer</p>
  <p><a href="https://i.stack.imgur.com/58odF.png" rel="nofollow noreferrer">Users Table</a></p>
  <p>This is my java entity</p>
  <pre><code>@Entity 
  @Table(name = &quot;Users&quot;)
  public class User {
  
      private int idUser;
      
      private String login;
      
      private String password;
      
      private String actived;
      
      
      public User() { }
      
      public User( String login, String password ) {
          super();
          this.setLogin( login );
          this.setPassword( password );
      }
  
      @Id
      @Column(name = &quot;USER_ID&quot;, unique = true, nullable = false, scale = 0)
      public int getIdUser() {
          return idUser;
      }
      
      @Column(name = &quot;USER_LOGIN&quot;, nullable = false)
      public String getLogin() {
          return login;
      }
      
      public void setLogin(String login) {
          this.login = login;
      }
  
      @Column(name = &quot;USER_PASSWORD&quot;, nullable = false)
      public String getPassword() {
          return password;
      }
      
      public void setPassword(String password) {
          this.password = password;
      }
      
      @Column(name = &quot;ACTIVED&quot;, length=1)
      public String getActived() {
          return actived;
      }
      
      public void setActived(String actived) {
          this.actived = actived;
      }
      
      
      
      
      public String toString() {
          return this.idUser + &quot;: &quot; + this.login + &quot;/&quot; + this.password 
               ;
      }
      
  }
  </code></pre>
  <p>And my service</p>
  <pre><code>@Service
  @Transactional
  public class MyServiceImpl implements MyService {
      private static final long serialVersionUID = 8393594103219622298L;
  
      public void activedMyUser(int idUser, boolean isActived) {
      String query1 = &quot;update USERS&quot;;
      if(isActived) {
          query1 += &quot; set ACTIVED='T' &quot; ;
      } else {
          query1 += &quot; set ACTIVED='F' &quot; ;
      }
      query1 += &quot; where USER_ID=? &quot; ;
      
      SQLQuery query = sessionFactory.getCurrentSession().
              createSQLQuery(query1);
      query.setParameter(0, idUser);
      query.executeUpdate();
  }
      
  }
  </code></pre>
  <p><strong>And when i call activedMyUser(3, true)</strong>,
  In my USERS table the row with id equals 3 is not updated in oracle database with sql developper. I must do a commit after my request, how can i do it programmatically in java. I have no error in my sql native request. How xcan i solve this problem ?</p>