Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I configure the IntelliJ HQL Console to work with Spring Boot

I'm using Spring Boot and IntelliJ. Because Spring Boot auto-configures the database, there is no hibernate.cfg.xml file. Typically, when you want to execute HQL queries on the console, you connect via this configuration file.

https://www.jetbrains.com/idea/help/working-with-the-hibernate-console.html#d951572e120

Unfortunately, I don't have that file as an entry point. How else can I execute HQL queries?

like image 925
sparkyspider Avatar asked Oct 20 '15 11:10

sparkyspider


1 Answers

You should have your entityManagerFactory registered and then in persistence tab right-click on entityManagerFactory an choose Console. (I'm using Intellij EAP 2018.1)

enter image description here

like image 105
Michał Stochmal Avatar answered Sep 21 '22 23:09

Michał Stochmal