Hibernate Query Editor (Spring roo project)

I am new to java, hibernate, spring roo and spring mvc. I use Hibernate annotations and POJO classes. My IDE spring Source (based on Eclipse)

What hibernate query editor do you suggest for testing hibernate requests?

I tried installing jboss hibernate for eclipse but was not successful in setting up. When I try to view the database, I get this error

An internal error occurred during: "Retrieving children from the database." org.slf4j.spi.LocationAwareLogger.log (Lorg / SLF4J / Token; Ljava / languages ​​/ String; ILjava / languages ​​/ String; [Ljava / languages ​​/ object; Ljava / languages ​​/ Throwable;)

I tried to configure maven to use the older version of slf4j (1.5.8), but this did not solve the problem.

I found a recommendation for the HQE editor, but it is not available https://hqe.dev.java.net (not found)

What is the easiest way to try Hibernate Queries? What tool do you offer?

+4
source share
2 answers

I'm not sure why I need a query editor for sleep mode. Since the idea of ​​hibernate was to ensure that normal java developers can write a query without sql knowledge. When I developed hql, I just created a connection using java objects in eclipse. and then copy it to the request. And run the application to find out if the query asks for the desired result. This method is tedious, but still you do not write a lot of requests in sleep mode, and you will also get used to the syntax with just a few requests. And usually you will get from lazy loading and never use hql.

If you have a better way, I will check this blog.

0
source

Try the squirrel. It can fulfill requests using sleep mode.

0
source

Source: https://habr.com/ru/post/1347255/


All Articles