[1765] make more generic so it now works with normal hibernate entities as well

lighthouse ticket

http://play.lighthouseapp.com/projects/57987-play-framework/tickets/1765-jpaplugin-only-working-with-jpabase