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
Post a Comment