Created
October 7, 2019 13:22
-
-
Save sohangp/2cd92265094888b641e13911275814e3 to your computer and use it in GitHub Desktop.
Named Parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Search Customer By First Name --> | |
<named-native-query name="customerEntity.searchCustomerByFirstName"> | |
<query><![CDATA[ | |
SELECT | |
cust.id as customerId, | |
cust.FIRST_NAME as firstName, | |
cust.LAST_NAME as lastName, | |
cust.CITY as city, | |
cust.COUNTRY as country, | |
corder.ORDER_NUMBER as orderNumber, | |
corder.TOTAL_AMOUNT as totalAmount | |
FROM CUSTOMER cust LEFT JOIN CUSTOMER_ORDER corder | |
ON corder.CUSTOMER_ID = cust.ID | |
WHERE | |
cust.FIRST_NAME = :firstName | |
]]></query> | |
</named-native-query> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment