Problem with delete cascade using QueryDSL with Spring jpaTemplate

627 views
Skip to first unread message

David Castelló

unread,
Feb 1, 2012, 8:30:06 AM2/1/12
to quer...@googlegroups.com
Hi all,

We are using Spring JPA and jpaTemplate in order to execute SQL statements. 
We have no problems Integrating QueryDSL for quering and updating, but cascade operations seems to be ignored.

We have prepared a small test case with two operations. The first one uses jpaTemplate as it is and the cascade for delete operations works perfect.
The second one uses QueryDSL JPADeleteClause and no cascade delete is issued.

Are we missing something?

Best regards,
  David
jpa-test.tar.gz

Timo Westkämper

unread,
Feb 2, 2012, 12:27:40 PM2/2/12
to quer...@googlegroups.com
Hi.

I believe this is a restriction in the JPA specification : http://stackoverflow.com/questions/7825484/jpa-delete-where-does-not-delete-children-and-throws-an-exception

Br,
Timo Westkämper
--
Timo Westkämper
Mysema Oy
+358 (0)40 591 2172
www.mysema.com



Reply all
Reply to author
Forward
0 new messages