-->
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.  [ 4 posts ] 
Author Message
 Post subject: Can I work on table views using hibernate?
PostPosted: Mon Sep 25, 2006 3:43 pm 
Newbie

Joined: Fri Feb 03, 2006 7:24 pm
Posts: 4
Can I work on table views using hibernate?
Example: Let say I have a view created from different tables and I need data from this view to be displayed to the JSP using hibernate.

If yes, how does it work?

Thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 26, 2006 3:46 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Try using it as normal Hibernate pojo - just replacing table name with view name.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 26, 2006 10:36 am 
Newbie

Joined: Fri Feb 03, 2006 7:24 pm
Posts: 4
How about the Id? How does it work?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 11:07 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
what is the primary key / unique key of your view?
Map it as the PK in your class

_________________
Emmanuel


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