• Post Reply Bookmark Topic Watch Topic
  • New Topic

nested query using hql  RSS feed

 
Megha Singhal
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i write following query in hql in spring-hibernate system with reference to bean


following are my beans


 
Dave Tolls
Ranch Hand
Posts: 2560
27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your model looks a bit off to me.
I would have expected the relationships in employee_to_department to be represented on the Employee and Department tables.
Let Hibernate do the work.

Is it supposed to be a Many To Many?
 
Megha Singhal
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry i didn't understand your question.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!