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

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

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