title: Insert Row Into Composite Table With Hibernate Named Query
body: <p>Does anyone know the correct syntax in HQL to insert a row into a composite table? or an example somehwere else?  Nothing online, man I miss Linq-To-Sql.</p>
  
  <pre><code>@NamedQueries({
  @NamedQuery( name = "WebsiteAction.addActionWebsite", query = "INSERT INTO WebsiteAction 
  (websiteActionPK, websiteActionPK) SELECT a.Id, w.Id FROM Action a, Website w WHERE a.Id = :actionid AND w.Id = :websiteid")
  })
  </code></pre>