This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes problem on delete beacuse of mapping view as a collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "problem on delete beacuse of mapping view as a collection" Watch "problem on delete beacuse of mapping view as a collection" New topic
Author

problem on delete beacuse of mapping view as a collection

srini carry
Ranch Hand

Joined: Nov 30, 2007
Posts: 83
I have an entity , I mapped a view as a collection to this entity .Now when I call delete for this entity hibernate first tries to delete from view and I get this error

ORA-01752: cannot delete from view without exactly one key-preserved table

I am wondering If I can tell hibernate not to issue delete statement for this collection which is a view ?

here my entity
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem on delete beacuse of mapping view as a collection