File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
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
I agree. Here's the link:
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-2015