fixed building errors and mappings ManyToMany

Project didn’t build successfully. After fixing that application didn’t
want to start up due to missing or both sides mappedBy arguments in JPA
annotations. FIXED