Menu

#195 Unable to Gen xml for Hibernate from FrontBase

open
5
2005-11-22
2005-11-22
No

When looking at an existing FrontBase database to
generate Hibernate *.hbm.xml files, Middlegen is able
to successfully connect and see the database, just no
tables.

FrontBase apparently uses "BASE TABLE" as its top-level
node under the schema instead of "TABLE".

I was able to get this working (with no real testing
other than, for our purpose, successfully producing the
hbm.xml files - which produced a good set of Java ORM
files using the Hibernate tool) by changing the following:

in
middlegen.MiddlegenPopulator.addRegularTableElements(),
I added the modified the first 'if' clause as follows:

**********************************************
if ("TABLE".equals(tableType) || "BASE
TABLE".equals(tableType) ||

(_middlegen.getMiddlegenTask().isIncludeViews() &&
"VIEW".equals(tableType)) ||
("SYNONYM".equals(tableType) &&
isOracle()))
***************************************************

I know FrontBase isn't as common as other DBMS's, but
we're out there.

Thanks for looking at this. (great tool, by the way!)

Dennis

Discussion


Log in to post a comment.