I have a complex query in MySQL with sub-select
and joins
.
I would like to read this script through a .sql
file using the JPA / Hibernate language (JPQL or HQL), for example getSession().createQuery(arquivo.sql);
.
Or another way that will allow me to read the file be having to be fetched the script in the repository. Is this possible?