-->
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.  [ 1 post ] 
Author Message
 Post subject: Automation of generation of view with SchemaExport
PostPosted: Sat Jul 10, 2004 5:15 am 
Beginner
Beginner

Joined: Sun Nov 16, 2003 9:30 am
Posts: 20
Hi all,

I want to use hibernate to model a table view. The view is a table like :

select cart_id, avg(price), count(cart_id) from items group by cart_id.

Currently, by modelling in hbm.xml, it's very troublesome when I do the schema export. It first create a table and then I have to remove it and create the view again by a sql.

Is there any way that I could put this sql into the hbm.xml file (or other methods) such that it will be generated automatically when I do the schema export.

Thanks.

Perseus


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.