-->
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.  [ 3 posts ] 
Author Message
 Post subject: How can i map a DB VIEW on hibernate????
PostPosted: Wed Aug 10, 2005 1:07 pm 
Newbie

Joined: Fri Jun 03, 2005 3:40 pm
Posts: 7
i need to map a view on hibernate, how can i do that? i´m using hibernate 2! thanks


Top
 Profile  
 
 Post subject: Re: How can i map a DB VIEW on hibernate????
PostPosted: Wed Aug 10, 2005 1:21 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
chinanihc2 wrote:
i need to map a view on hibernate, how can i do that? i´m using hibernate 2! thanks


The Hibernate 3 doc (v3.0.5 page 52) specifically states "There is no difference between a view and a base table for a Hibernate mapping...." and I would expect that this is true for version 2 as well.

Have you tried it ?

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 1:30 pm 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
as far as i know there's no problem mapping a view ... just like mapping a table!

But you can't save your changes! You could, but you need some workaround (e.g. a trigger).

gtx
curio


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.