support private entity class constructor