Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Query about using @PrivateOwned with JPQL

Delete all does not delete private owned.  You need to execute a separate
delete-all for that.

Deleting the private owned objects would be very difficult, but feel free to
log an enhancement request for it anyway.



Pramodkk wrote:
> 
> I have a Query "delete from AgentGroup a" . The entity Agentgroup 1:M
> relation with agents . When I execute the query above the agents dont get
> deleted and I get FK constraint error. Even when i use @PrivateOwned  over
> the collection of agents
> 
> 
> 
> Thanks
> P
> 


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
Blog:  http://java-persistence-performance.blogspot.com/ Java Persistence
Performance 
-- 
View this message in context: http://old.nabble.com/Query-about-using-%40PrivateOwned-with-JPQL-tp31994401p32107939.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top