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: MSSQL Views with Nhibernate
PostPosted: Fri Oct 13, 2006 4:14 am 
Newbie

Joined: Wed Aug 16, 2006 2:49 am
Posts: 14
Is it possible to work with VIEWS using NHibernate? How? Is there a documentation for this? Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 13, 2006 4:32 am 
Newbie

Joined: Wed Aug 16, 2006 2:49 am
Posts: 14
found the answer to my question. It's just the same as using the table.
In the mapping file, you just have to input the ViewName instead of the table.

table="tableA", use table="viewA" instead.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 14, 2006 12:09 am 
Regular
Regular

Joined: Tue Feb 21, 2006 9:50 am
Posts: 107
and you should set the attribute "mutable" to false on your class tag. This Tells NHibernate that the class is readonly which affects the perfomance positive.

Regards
Klaus[/code]


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.