You can also create your own repository implementation and use the entity manager to call createNativeQuery, here is an interesting link explaining the steps to do it. I already did that in my project and it worked perfectly