hibernate - Is there a way to use hql without classes? -
hibernate - Is there a way to use hql without classes? -
the scenario is: in system, user able define query database using kind of metadata.
example: user define parameters such as:
-databasetype: oracle 11g -connectionproperties: (user, password, server, etc) -tablename: tab1 -columns: col1, col2 -filters: col3=2 ; col2=5
that way, don't know returned, , don't have class matches resultset returned query.
that said, problem is: can build hql query using these "metadata" without class match result (like tab1 col1 , col2)?
faq: -"why want utilize hql , not sql" answer: database-independent.
thanks, , please tell me if wasn't clear plenty :)
hql operates on objects, no - hibernate complain doesn't find object referring to.
hibernate
Comments
Post a Comment