add extendsJava for Entities