title: Execute some arbitrary sql in the current transaction in JPA 2.0
body: <p>I am new to JPA 2.0/EclipseLink/Glassfish/JEE6, and have kind of a basic question.</p>
  
  <p>I have a DAO in which most of the entities are mapped directly to columns using JPA annotations, so I use the EntityManager, and it works great with no issues.  </p>
  
  <p>However there are some tables in which I am constructing the SQL statements myself b/c they use oracle-specific functions (spatial), and I want very fine-grained control of the SQL.  So I am building it with string concatenation.  I would like to be able to enroll my SQL executions in the current transaction, if there is one already underway.  </p>
  
  <p>So naturally I don't want to go directly to the DriverManager and create my own connection, I was looking for some kind of EntityManager.executeArbitrarySQL(String) function that would find the current connection and make my SQL part of the current transaction.  Am I off my rocker?</p>