title: JBoss EJB transactions don't generate Oracle SQL Statements from JPA java persistence objetcs (eclipselink)
body: <p>I'm trying to migrate a J2EE heavy application (jnlp) from Oracle OC4j (OAS) using Toplink, to RH JBoss using Eclipselink (without changing functional code of Beans).</p>
  <p>If read-only java instructions are correctly translated in a SELECT SQL statement :</p>
  <pre><code>Session session = getSession();
  ReadAllQuery query = new ReadAllQuery(Employee.class);
  ExpressionBuilder builder = new ExpressionBuilder();
  Expression criteres = builder.get(&quot;nom&quot;).equal(&quot;Smith&quot;);
  query.setSelectionCriteria(criteres);
  Vector employees = (Vector) session.executeQuery(query);
  Employee employeeSmith = employees.elementAt(0);
  </code></pre>
  <p>==&gt;</p>
  <pre><code>SELECT * FROM employee WHERE nom='Smith';
  </code></pre>
  <p>But, write java instructions seem not to be translated in corresponding SQL statements :</p>
  <pre><code>session.acquireUnitOfWork().deleteObject(employeeSmith);
  </code></pre>
  <p>==&gt;</p>
  <pre><code>DELETE employee WHERE nom='Smith';
  </code></pre>
  <p>(the same for session.acquireUnitOfWork().registerObject(employeeSmith) doesn't generate neither INSERT nor UPDATE SQL statements)</p>
  <p>Is there any setup in JBoss or parameter for Eclipselink to activate this &quot;translation&quot; when EJB commit its transaction ?</p>
  <p><strong>I want to specify that I'm using &quot;native&quot; Oracle JDBC connection protocol with sessions.xml and a XML mapping file (correspondences between Oracle database tables/columns and Java classes/attributes objects), AND NOT persistence units (with persistence.xml definition file and entity managers).</strong></p>
  <p>Thanks a lot in advance for your help and advices.</p>
  <p>Regards</p>
  <p><em>Current configuration :
  Oracle OC4j 10.1.3.5.0 using Toplink 11.1.1.2.0 JPA implementation</em></p>
  <p><em>Target configuration :
  RedHat JBoss EAP 7.4 using Eclipselink 2.7.0 JPA implementation</em></p>