sql - How to get Entity name from the returned object in hibernate -



sql - How to get Entity name from the returned object in hibernate -

i have application, takes sql query input , displays result. in scenario, user enters query, need info database. if table name , pojo class names different, how can cast returned object pojo class , data?

is there way find pojo class returned object.

thanks in advance.

you can seek using (obj instanceof classname) find out if object/entity of type.

sql hibernate table object pojo

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -