'Save using Spring Data Jpa and find using JdbcTemplate within same transaction

enter image description here

When i comment the line 276, The code in the line 277 is not working. Within the same transaction i am saving via data jpa and querying same table data via jdbctemplate. Please help me how to make it working line277 by commenting the line276.

saving via data jpa

enter image description here.

querying via jdbctemplate

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source