A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
hql delete join
Joined: Jul 11, 2006
Jan 28, 2008 06:16:00
I am able to delete records from a single table.
But when i try to delete from multiple tables using joins Hiberate throws
Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: unexpecte d token: , near line 1, column 31
My Query: " delete from org.hib.Table1 t1,org.hib.Table2 t2 where ta.id = t2.id and t2.name=name "
Can you please tell me how to delete records from multiple tables using joins
It is sorta covered in the
JavaRanch Style Guide
subject: hql delete join
JPA Question : Deletion w.r.t One-to-many relation
CMP and Multiple Tables
JPA JPQL - How to Order the Joins
Regarding join statement?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014