-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Modify Entities from Views - update/delete/insert
PostPosted: Tue May 11, 2010 4:48 am 
Newbie

Joined: Mon Feb 15, 2010 4:13 am
Posts: 8
I want to do update/delete/insert on view Entities. I know this is basicaly impossible.
Can I somehow prevent HIbernate from creating and executing CRUD statements and then do my own inserts/updates/deletes for example in the @PrePersist, @PreUPdate Callback methods?
Or has anybody a better idea.

I am forced to work on the views, otherwise I would need to rewrite a big part of the whole application...

Thanks for any idea


Top
 Profile  
 
 Post subject: Re: Modify Entities from Views - update/delete/insert
PostPosted: Tue May 11, 2010 9:40 am 
Beginner
Beginner

Joined: Fri Aug 24, 2007 9:47 am
Posts: 21
that's depends if your view contains some primary keys and in that way it's possible to execute CRUD statement.

_________________
recherche-programmeur.fr


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.