Fixes openjpa entity enhance issues

Signed-off-by: Mario Krizmanic <mario.krizmanic@gmail.com>