tested entity inherit.It works fine;
implemented session based save and findAll. works fine.