I have SELECT queries where a parameter is a Java Date. There is no error in the console but they do not get data from the database.
First query:
<select id="getByDate" parameterType="java.util.Date" resultType="domain.Book">
SELECT * FROM BOOK WHERE DTCREATED = #{dateCreated}
</select>
I tried also _date for parameterType, the same happened. My other queries use map for parameterType since number of parameters are either 2 or 3.
Again, there is no error. Just no data being returned. For non-Date parameter, queries are working.
Any help would be appreciated. Thank you.