Is it possible to put comments into Hibernate Query Language? If so, how?
相关问题
- NOT DISTINCT query in mySQL
- Flush single app django 1.9
- keeping one connection to DB or opening closing pe
- Mysql-installer showing error : Memoy could not be
- Android Room Fetch data with dynamic table name
相关文章
- Fluent NHibernate — Saving Entity with Composite K
- Connection pooling vs persist connection mysqli
- Is this the right way of using ThenFetch() to load
- Can Persistence Ignorance Scale?
- Speed up sqlFetch()
- How Do I Seed My Database in the setupBeforeClass
- I set a MySQL column to “NOT NULL” but still I can
- Where in Django can I run startup code that requir
If it helps your development, Hibernate Tools (Eclipse) supports double hyphens as single-line comments in their HQL editor. Helps me a lot. I've just tried the JPQL statement
and it returned the pro instances.
Also not quite to the point, but it might be useful nontheless.
AFAIK, HQL does not support comments.
Make sure your session is configured with:
Then do:
and you will see something like the following in your MySQL log file (if you're using MySQL):