Find a HQL wording

Category: Java EE
2013-08-20 02:08:46

Sponsored Links
There are two Hibernate BEAN, one is TbCompany (company), one is TbContact (contacts), a company with multiple contacts, so TbCompany there is a contactSet, each one to many relationship.

Now, I want to find out like "% Shanghai%" Person's name is called "Li Qiang," the records and to order "from TbCompany" at the beginning of , is the company as the active side query, HQL statement how to write is the most efficient?

Sponsored Links

2013-08-20 02:21:05
I have to look at the past has been that from the contact surface with the
2013-08-20 02:40:16
I think the problem is widespread, it is not nobody encountered ?
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.