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

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -