This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Uni-directional Many-to-many problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Uni-directional Many-to-many problem" Watch "Uni-directional Many-to-many problem" New topic

Uni-directional Many-to-many problem

Mohamed Atiea

Joined: Aug 04, 2009
Posts: 1
Hello all,

I have a uni-direction many-to-many relation with Job and Category, Job has many categories when I try to get the job by its declared categories field (ste<Category>) hibernate generates SQL but with a dot inside it below is how I am using HQL and the exception:

Please note the dot in the generated SQL



Correct SQL that I was expecting:

My HBM files are:

I agree. Here's the link:
subject: Uni-directional Many-to-many problem
Similar Threads
JBPM Deployment on Jboss-4.0.3SP1
Hibernate self referential interigity
Hibernate error
Adding SelectList Value into DB
Foreign Key Constraint Fails