bgoodwin wrote:
... I'm still working on getting DEBUG messages to appear in the log.
Ok I got verbose logging. It helped a bit. The tool really is only looking at the one table. Unfortunately, that means that the tool isn't properly reverse engineering the only table I've told it about. Here's the reveng.xml, ddl for the table, and the log leading up to the exception. . .
DDL:
Code:
CREATE TABLE PRODUCT_EULA
(
PRODUCT_EULA_ID NUMBER NOT NULL,
NAME VARCHAR2(50 BYTE) NOT NULL,
TEXT CLOB NOT NULL
)
reveng.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
<hibernate-reverse-engineering>
<type-mapping>
<sql-type jdbc-type="NUMERIC" scale="0" hibernate-type="big_integer"/>
<sql-type jdbc-type="NUMERIC" hibernate-type="big_decimal"/>
<sql-type jdbc-type="CLOB" hibernate-type="clob"/>
<sql-type jdbc-type="VARCHAR" hibernate-type="string"/>
</type-mapping>
<table-filter match-schema="WEBUSER" match-name="PRODUCT_EULA" />
<table-filter match-catalog=".*" match-schema=".*" match-name=".*" exclude="true" />
</hibernate-reverse-engineering>
LOG:
Code:
17:02:12,381 DEBUG JDBCBinder:382 - Finding columns for WEBUSER.PRODUCT_EULA
17:02:12,474 DEBUG JDBCBinder:310 - primary key for org.hibernate.mapping.Table(WEBUSER.PRODUCT_EULA) -> org.hibernate.mapping.PrimaryKey(PRO
DUCT_EULA[org.hibernate.mapping.Column(PRODUCT_EULA_ID)]) as PK_PRODUCT_EULA
17:02:13,459 DEBUG JDBCBinder:87 - Calling getExportedKeys on org.hibernate.mapping.Table(WEBUSER.PRODUCT_EULA)
17:02:13,537 DEBUG JDBCBinder:101 - foreign key name: FK_PRODUCT_PRODUCT_EULA_ID
17:02:13,537 DEBUG JDBCBinder:106 - Foreign key FK_PRODUCT_PRODUCT_EULA_ID references unknown or filtered table PRODUCT
17:02:13,537 DEBUG JDBCBinder:101 - foreign key name: FK_PROD_VER_PRODUCT_EULA_ID
17:02:13,537 DEBUG JDBCBinder:106 - Foreign key FK_PROD_VER_PRODUCT_EULA_ID references unknown or filtered table PRODUCT_VERSION
17:02:13,537 DEBUG JDBCBinder:458 - Sql type mismatch for Column org.hibernate.mapping.Column(PRODUCT_EULA_ID) between DB and wanted hibernat
e type. Sql type set to 2 instead of 3
17:02:13,537 DEBUG JDBCBinder:656 - Building property productEulaId
17:02:13,537 DEBUG JDBCBinder:666 - Cascading productEulaId with null
17:02:13,537 DEBUG JDBCBinder:656 - Building property name
17:02:13,537 DEBUG JDBCBinder:666 - Cascading name with null
17:02:13,537 DEBUG DriverManagerConnectionProvider:129 - returning connection to pool, pool size: 1
!ENTRY org.hibernate.eclipse.console 4 4 2005-10-04 17:02:13.537
!MESSAGE Error under artifact generation
!STACK 0
org.hibernate.cfg.JDBCBinderException: The type java.lang.Object spans multiple columns. Only single column types allowed for single columns.
at org.hibernate.cfg.JDBCBinder.guessAndAlignType(JDBCBinder.java:453)
at org.hibernate.cfg.JDBCBinder.bindColumnToSimpleValue(JDBCBinder.java:403)
at org.hibernate.cfg.JDBCBinder.bindBasicProperty(JDBCBinder.java:395)
at org.hibernate.cfg.JDBCBinder.bindColumnsToProperties(JDBCBinder.java:380)
at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:163)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:91)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$3.execute(ArtifactGeneratorWizard.java:249)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:35)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:71)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.buildConfiguration(ArtifactGeneratorWizard.java:246)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.doFinish(ArtifactGeneratorWizard.java:165)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard.access$0(ArtifactGeneratorWizard.java:133)
at org.hibernate.eclipse.console.wizards.ArtifactGeneratorWizard$1.run(ArtifactGeneratorWizard.java:99)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Any ideas?