-->
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: Creating views with Schema Export
PostPosted: Mon Dec 05, 2005 8:54 pm 
Newbie

Joined: Mon Dec 05, 2005 8:14 pm
Posts: 1
Is it possible to create views with Schema Export?

If so, how do the mapping files define the views?

The schema I am working with has tables defined and views on those
tables. The mapping files describing the views (see example below)
bascially look similar to those describing a table. Up until now,
I have set up the views and tables using SQL (HDRTrunkAdd is one
of the views) .

Runtime access to the table and view objects works fine. But, I
need to switch to SchemaExport to create the schema. I have used
SchemaExport in the past for schemas that only contain tables.

Searching though the documentation and the forums, I have not been
able to determine a way to use a mapping file to define the
relationship between the views and the tables they represent.

As the mapping files currently are written, using SchemaExport will
create the views as tables with no relationship to the tables
themselves.

Is there a way to use SchemaExport to create views?
Thanks
Al


Hibernate version: 3.0.5

Mapping documents:
Code:
<hibernate-mapping>
    <class name="com.datamodel.views.HDRTrunkAddView" table="HDRTRUNKADD">

        <id name="uniqueId" type="java.lang.String">
            <column name="TRUNKKEY" length="50" not-null="true"/>
            <generator class="uuid"/>
        </id>

        <property name="adapterID" type="java.lang.String">
            <column name="AdapterID" length="512" not-null="false"/>
        </property>

        <property name="dataSourceType" type="java.lang.String">
            <column name="DATASOURCETYPE" length="512" not-null="false"/>
        </property>

        <property name="eid" type="java.lang.Integer">
            <column name="EID" length="512" not-null="false"/>
        </property>

    </class>
</hibernate-mapping>


Name and version of the database you are using: Oracle 10G
Code:
Code:
Code:
Code:

_________________
Al


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 4:14 am 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
I have never heard of such a feature and I seriously doubt that it exists.


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.