EDIT: ITS SOLVED (im just stupid) here's the stackoverflow version https://stackoverflow.com/questions...ate-select-where-clause-not-taking-table-name basically java/hibernate isn't taking the entirety of the string to make a select which then results in errors id appreciate help
Man half our community is retarded the other half can't do math and similar while the other (smarter) half wouldn't even crawl out of their holes if you made a horny succubus wink at them from outside their caves.
Shouldn't "idAdres" be given a table too? Like "tr.idAdres"? I get the feeling that hibernate is getting confused over which column is going where. Be consistent.
Ah, Hibernate. I hate hibernate. I haven't had to really deal with it in forever, since I started using Spring Btw, you do realize that in the code snippet you posted, the String contains "Training.archief" not "TrainingDetail.archief" ?
nope it works prefectly if i remove the archief clause the hibernate sql also says its perfectly ok except on that little thing...
doesn't matter how i look your code, it's just messed up.... i remind you a working java code it's not neccesary a correct one (damn exceptions)
found the problem im just stupid was querrying a different querry was a typo in the DAO function which made me querry something else no idea how in hibernate hope the teaches wont bash me too much for it