-->
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: Middglegen and synonyms
PostPosted: Thu Mar 03, 2005 1:30 pm 
Beginner
Beginner

Joined: Thu Jan 22, 2004 2:42 pm
Posts: 24
I am running Middlegen 2.1 against an older Oracle db(8.x we think), and it drops this error regarding the synonyms in the schema:
$ ant
Buildfile: build.xml

init:

fail-if-no-xdoclet-1.2:

check-driver-present:

panic-if-driver-not-present:

middlegen:
[middlegen] Database
URL:jdbc:oracle:thin:@iddb02.lab.usi.net:1521:XPDWACD1
[middlegen] No <table> elements specified. Reading all tables. This might take a while...

BUILD FAILED
C:\Documents and Settings\#taustin\Desktop\dev downloads\middlegen-2.1\samples\b
uild.xml:228: middlegen.MiddlegenException: Wow! Synonym CDCREDITREQUEST_SN not found. How can it happen?
Configured schema:IWDEV
Configured catalog:
Available schemas:
DBSNMP
IWDEV
OUTLN
PRODQUERY
SYS
SYSTEM
UPDATENOC
Available catalogs:

The Synonyms have valid links, the tables they link to exist and are queryable. Any insights? Is there a command line argument I can use to make middlegen only pull table information?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 03, 2005 9:11 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Oracle synonyms are supported but I have not ever tested them so I am not sure if they still work or not. I suggest you create a bug report in SFs bug tracker system for Middlegen.


Top
 Profile  
 
 Post subject: turning off the reading of synonyms
PostPosted: Fri Mar 04, 2005 10:34 am 
Beginner
Beginner

Joined: Thu Jan 22, 2004 2:42 pm
Posts: 24
Is there a way for me to make middlegen ignore synonyms? Failing the ability to map the synonyms, it would be nice to just have middlegen map the tables in the DB itself, so is there a command line argument I can give it that will make it do a barebones operation on the db (e.g. like reading only tables and views, instead of tripping on fancier features)?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 04, 2005 11:34 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
No way to do it at the moment (it is reasonable request so add it to SF bug Tracker). It is easy enough to stop them being selected. Change the isOracle() request in MiddlegenPopulator to return false and it will no longer add them. This is a Hack but it might do what you need.

Alternative, create the option and the lookup code and provide the patch. Its not a big job.


Top
 Profile  
 
 Post subject: deselection flag
PostPosted: Mon Mar 07, 2005 3:11 pm 
Beginner
Beginner

Joined: Thu Jan 22, 2004 2:42 pm
Posts: 24
I may just do that, I'll ask my coworkers if this is an allowable use of my worktime(I may do it at home). Either way, I will request the feature on sourceforge.


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.