title: JPQL Update Query
body: <p>I have an entity like this:</p>
  
  <pre><code>@Entity
  @Table(name = "QUESTION_GROUP_TEXT")
  @NamedQueries({
          @NamedQuery(
                  name = EntityUtils.NamedQuery.UPDATE_QUESTION_GROUP_TEXT,
                  query = "UPDATE QuestionGroupText T SET T.localizedText.content = :content WHERE T.generatedId = :generatedId")
  })
  public class QuestionGroupText implements Serializable {
  
      @Column(name = "GENERATED_ID", nullable = false, unique = true)
      private String generatedId = generateId();
  
      @ManyToOne(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
      @JoinColumn(name = "LOCALIZED_TEXT_ID", nullable = false)
      private LocalizedText localizedText;
  
      //Getters and setters
  
  }
  </code></pre>
  
  <p>This query: <code>UPDATE QuestionGroupText T SET T.localizedText.content = :content WHERE T.generatedId = :generatedId</code> does not work, it throws:</p>
  
  <pre><code>Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set CONTENT='Question Label' where GENERATED_ID='AD78F9B5E2A146D9AB9D94096DA835B' at line 1
  </code></pre>
  
  <p>There must be something wrong with this part of the query: <code>T.localizedText.content</code>, is there any way I can change it to make this work?</p>