Skip to content

hiijack/hql-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hql-generator

Generate hql from a parameter bean

In my early projects, we wrote many hql string in codes, these hqls make many problems. First, it's hard to test these hqls; Secondary, you maybe write many if/else to make the combine conditions. So this project finally came out. It can generate hql from a bean with given annotations, so the IDE can check if your condition is right or not. And I even offer a call validator for you to test your QueryParamsCall. You may use this tool in following condition:

  1. You have many hql that written in java code, and most of them comes form one table.
  2. You have to query data with combining AND conditions dynamically.

It not suitable for you when

  1. You have many table joins in your hql.
  2. You want to make dynamic condition from page for user to choose.
  3. You have OR query.

About

Gnerate Hql from a parameter bean

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors