Answer the question
In order to leave comments, you need to log in
Is it possible to pull one column into a String via addEntity(String.class)?
The bottom line is that the native query is written to return exactly one Yes/No value.
Therefore, I would like to pull out this value in some more beautiful way than:
String result = (String) (((Object[]) list.get(0))[0]);
Query query = session.createSQLQuery(queryToExecute).addEntity(String.class);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question