File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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