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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

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