-->
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: Reverse Engineering a FrontBase
PostPosted: Fri Nov 25, 2005 9:19 am 
Newbie

Joined: Thu Nov 24, 2005 10:03 am
Posts: 7
Hi there,

I am trying to reverse engineer a FrontBase database using the Hibernate tools in Eclipse.

For some reason I only get the Views in that database but not the tables.

I've been trying to localize what the plugin does and (if I'm correct) I end up in JDBCMetaDataDialect.getTables().

Here
getMetaData().getTables(catalog , schema , table, new String[] { "TABLE", "VIEW" });

I translated that back into a 'pure' small JDBC test APP and it sees very well the TABLES and the Views in the ResultSet.

Before I put this in JIRA is there anything else I should look for?

-- Rene


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 25, 2005 2:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmmm .. if views are picke up tables also should. are they by any chance in different packages ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 28, 2005 8:53 am 
Newbie

Joined: Thu Nov 24, 2005 10:03 am
Posts: 7
What do you mean with 'packages' in that context?

I've dug a little further and I think I found the error: The resultset from JDBCMetaData.getTables gets processed in the JDBC reader.processTables method.

In here there is a check for TabeType to be "TABLE" or "VIEW" but it turns out the FrontBase JDBC adaptor returns "BASE TABLE" as TableType. So the tables get sorted out in the process ;-(

Let me guess JIRA?


-- René


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 28, 2005 11:55 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
by packages i meant schema.

But if FrontBase uses "BASE TABLE" instead of "TABLE" then this is most likely the case.

So i guess we need a metadatadialect controlled Table_Type's. geez.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 28, 2005 12:23 pm 
Newbie

Joined: Thu Nov 24, 2005 10:03 am
Posts: 7
max wrote:
by packages i meant schema.

But if FrontBase uses "BASE TABLE" instead of "TABLE" then this is most likely the case.

So i guess we need a metadatadialect controlled Table_Type's. geez.


Ah .. the tables are in the same schema as the views. It's most probably the 'BASE TABLE' thingy. (I'm trying to compile the CVS source myself to verify).

The API docs from Java are indeed pretty open about possible types they say:
Quote:
TABLE_TYPE String => table type. Typical types are ....

So someone was bound to do it different.

-- René


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.