Update ABaseEntity.java

adapt hiberniate inheritance behavior