title: persistence.xml transaction-type="JTA"
body: <p>Is this <code>perisistence.xml</code> file correct, especially when i  <code>transaction-type="JTA"</code> ?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"&gt;
  &lt;persistence-unit name="CollDocPU" transaction-type="JTA"&gt;
  &lt;provider&gt;org.apache.openjpa.persistence.PersistenceProviderImpl&lt;/provider&gt;
  &lt;class&gt;model.entity.StudentAddSolution&lt;/class&gt;
  &lt;class&gt;model.entity.Lecturer&lt;/class&gt;
  &lt;class&gt;model.entity.Solution&lt;/class&gt;
  &lt;class&gt;model.entity.Student&lt;/class&gt;
  &lt;class&gt;model.entity.Course&lt;/class&gt;
  &lt;class&gt;model.entity.File&lt;/class&gt;
  &lt;class&gt;model.entity.CourseHasLecturer&lt;/class&gt;
  &lt;class&gt;model.entity.Mail&lt;/class&gt;
  &lt;class&gt;model.entity.StudentAtCourse&lt;/class&gt;
  &lt;class&gt;model.entity.Roles&lt;/class&gt;
  &lt;class&gt;model.entity.Task&lt;/class&gt;
  &lt;class&gt;model.entity.User&lt;/class&gt;
  &lt;exclude-unlisted-classes&gt;false&lt;/exclude-unlisted-classes&gt;
  &lt;properties&gt;
    &lt;property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:11080/myBase?zeroDateTimeBehavior=convertToNull"/&gt;
    &lt;property name="javax.persistence.jdbc.password" value="pass,"/&gt;
    &lt;property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/&gt;
    &lt;property name="javax.persistence.jdbc.user" value="myBase"/&gt;
    &lt;property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>
  </p>