-->
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: Question about generating database views
PostPosted: Thu Jul 28, 2005 7:41 pm 
Newbie

Joined: Thu Jul 28, 2005 12:23 pm
Posts: 3
Hi:

I am a Java Software Engineer with a company in California. My employer is using multiple DBMS (Oracle, MS SQL Server and MySQL) and for each DBMS, we have two separate scripts: (1) to create schema for database tables and (2) for inserting data into these tables.

Now my manager has decided to also port the web application we are developing into DB2 RDBMS. At the same time, he wants to automate the generation of schemas for database tables and views so that we do not have to maintain a separate script for each DBMS. So he has asked me to look into this.

I find that the Ant tools supplied with Hibernate utility are very useful for database vendor-independent schema generation of database tables. But I do not see in the Hibernate documentation any tips for generating views out of database tables.

So can you please tell me whether Hibernate can also be used to generate database table views automatically and if it can be used for this task, what I need to do to implement this task?

Thanks,

Kalpana


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 29, 2005 2:34 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
no - hibernate only creates tables.

the mappings does not contain enough information to create views.

_________________
Max
Don't forget to rate


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.