title: Named Query to delete a record by Supplying the entire object
body: <p>Hi I want to delete a record from the table spt_tutorials by giving an object of its entityClass SptTutorials .I am writing the named query like this.</p>
  
  <pre><code>@NamedQuery(name = "SptTutorials.deleteVideo", query = "DELETE s FROM SptTutorials s WHERE s.SptTutorials = :SptTutorials")})
  </code></pre>
  
  <p>where SptTutorials is the entity class and the parameter that I am passing thru the WHERE clause is a SptTutorials object.Is this query correct.</p>