#6 Maybe fix of problem?

I improved some relations between JPA entities. Also improved
persistence.xml file. It maybe must be eclipselink.ddl-generation =
create-tables because it throws exceptions with existing FOREIGN KEYs.

Used pages:
http://blog.jbaysolutions.com/2011/09/19/jpa-2-relationships-onetomany/