I want to Execute the SQL , which will be constructed completely at runtime and it can be querying any tables in the schema.
Something like
@Repository public interface BaseRepository extends JpaRepository<Object, Integer> {
@Query(":dynamicSQL")
List<Object> dynamicExecution(@Param("dynamicSQL") String dynamicSQL);
}
Please suggest how this can be implemented