Pure native scalar queries are not yet supported

Solution Verified - Updated -

Issue

The patch for https://hibernate.atlassian.net/browse/HHH-4412 is needed.

Without this fix return value event for a simple native request always needs to be specified.

<named-native-query name="Test1" result-class="com.fiscalfinancebank.settlement.instructions.management.monitoring.IdInstruction">
             <query><![CDATA[
                    SELECT 1 FROM dual
             ]]></query>
       </named-native-query>

If a return value is not specified following exception occurs :

org.hibernate.cfg.NotYetImplementedException: Pure native scalar queries are not yet supported.

Environment

  • Red Hat JBoss Enterprise Application Platform 5.2.0
  • Red Hat JBoss Enterprise Application Platform 6.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.