-->
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.  [ 6 posts ] 
Author Message
 Post subject: hibernate versus database views
PostPosted: Thu Apr 29, 2004 5:48 am 
Regular
Regular

Joined: Fri Nov 21, 2003 10:23 am
Posts: 81
Is it possible to use hibernate in conjunction with database views?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 5:54 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Of course, a view is a just a virtual table.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject: creating of view
PostPosted: Thu Apr 29, 2004 5:58 am 
Regular
Regular

Joined: Fri Nov 21, 2003 10:23 am
Posts: 81
Ok, but how can I achieve creating of view to db by schema generator.
Any example of mapping class to view using xdoclet?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 6:00 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
A view is created in the database, not with Hibernate. Thats the point, a view is _transparent_ to the client of the database.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject: ???
PostPosted: Thu Apr 29, 2004 6:11 am 
Regular
Regular

Joined: Fri Nov 21, 2003 10:23 am
Posts: 81
Table is also trasparent to client, and de facto is created by hibernate schema generation tool using ant task. What about view, should be created out of this concept?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 6:15 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You can't.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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