Create dynamic entities programatically from hibernate