-->
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.  [ 5 posts ] 
Author Message
 Post subject: Middlegen can't see Oracle View?
PostPosted: Mon Aug 23, 2004 8:08 pm 
Newbie

Joined: Fri Jun 25, 2004 8:42 am
Posts: 3
Hibernate version:2.1.6

Name and version of the database you are using:Orable 8i


Hello,

I am trying to create a mapping to an oracle view but middlegen simply don't see any view! Is there any parameter that I must include in the build.xml or oracle.xml middlegen file?

here is the middlegen oracle.xml file:


<property environment="env"/>

<property name="database.script.file" value="${src.dir}/sql/${name}-oracle.sql"/>
<property name="database.driver.file" value="./oracleJDBC/classes12.zip"/>
<property name="database.driver.classpath" value="${database.driver.file}"/>
<property name="database.driver" value="oracle.jdbc.driver.OracleDriver"/>
<property name="database.url" value="jdbc:oracle:thin:@dev:1521:DEV"/>
<property name="database.userid" value="owner"/>
<property name="database.password" value="owner001"/>
<property name="database.schema" value="OWNER" />
<property name="database.catalog" value=""/>
<property name="jboss.datasource.mapping" value="Oracle8"/>



Thanks,

Sylvain


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 23, 2004 8:27 pm 
Newbie

Joined: Fri Jun 25, 2004 8:42 am
Posts: 3
Just after sending this post I found the answer!

Middlegen don't seems to be looking for views if we don't specify which view in the "table" element. Just add:

<table name="SOME_VIEW"/>

in the build.mxl file and this view will be seen.

Sylvain.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 29, 2004 4:11 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
You can also tell Middlegen to include views in the Ant task, eg,
<middlegen
....
includeViews="true"
>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 07, 2004 2:52 am 
Newbie

Joined: Tue Aug 17, 2004 4:34 am
Posts: 10
It's great!
But I can't understand which file can be added this:<middlegen
....
includeViews="true"
>

Could you give a example?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 07, 2004 3:18 am 
Newbie

Joined: Tue Aug 17, 2004 4:34 am
Posts: 10
OK,I find it!


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