<persistence 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"
  version="2.0">
  <persistence-unit name="cz.muni.fi.pa165.test"
    transaction-type="RESOURCE_LOCAL">
    <properties>
      <property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:testdb;create=true"/>
      <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
      <property name="javax.persistence.jdbc.user" value="test"/>
      <property name="javax.persistence.jdbc.password" value=""/>
      <property name="hibernate.hbm2ddl.auto" value="create"/>
      <property name="hibernate.jdbc.batch_size" value="1000"/>
      <property name="hibernate.jdbc.batch_versioned_data"
        value="true"/>
      <property name="hibernate.order_inserts" value="true"/>
    </properties>
  </persistence-unit>
</persistence>
<persistence 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"
  version="2.0">
  <persistence-unit name="cz.muni.fi.pa165.test"
    transaction-type="RESOURCE_LOCAL">
    <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
    <properties>
      <property name="javax.persistence.jdbc.url" value="jdbc:derby:memory:testdb;create=true"/>
      <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
      <property name="javax.persistence.jdbc.user" value="test"/>
      <property name="javax.persistence.jdbc.password" value=""/>
      <property name="hibernate.hbm2ddl.auto" value="create"/>
      <property name="hibernate.jdbc.batch_size" value="1000"/>
      <property name="hibernate.jdbc.batch_versioned_data"
        value="true"/>
      <property name="hibernate.order_inserts" value="true"/>
    </properties>
  </persistence-unit>
</persistence>
Add Spring configuration for tests
Add Spring configuration for tests

Fixes #8
