]
Anthony Patricio commented on HBX-1103:
---------------------------------------
Olivier, in your schema what is the pk of the middle table? Is it LEFT_ID or is it
(LEFT_ID + RIGHT_ID)?
Max, for the moment, the NPE comes from Iterator properties =
pc.getPropertyClosureIterator(); (pc being PersistentClass)
org.hibernate.tool.hbm2x.ExporterExcept when reverse engineering a
DB
---------------------------------------------------------------------
Key: HBX-1103
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1103
Project: Hibernate Tools
Issue Type: Bug
Components: reverse-engineer
Affects Versions: 3.2.4 Beta1
Environment: MS SQL database 2005 :
Microsoft SQL Server Management Studio 9.00.3042.00
Microsoft Analysis Services Client Tools 2005.090.3042.00
Microsoft Data Access Components (MDAC) 2000.085.1132.00 (xpsp.080413-0852)
Microsoft MSXML 2.6 3.0 4.0 6.0
Microsoft Internet Explorer 7.0.5730.11
Microsoft .NET Framework 2.0.50727.1433
Operating System 5.1.2600
eclipse Platform 3.4.1, build M20080911-1700
JBoss Hibernate Tools, 3.2.4.CR1-R200812191611
Reporter: Olivier Cailloux
Assignee: Anthony Patricio
Priority: Critical
Attachments: create_DB.sql, hibernate.reveng.xml, logback.xml, persistence.xml,
SQLdiag.gif, stacktrace.log
Hi,
I am trying to use hibernate tools in eclipse to reverse engineer a complex db, and I
sometimes get "org.hibernate.tool.hbm2x.ExporterException: Error while processing
Entity: persist.eXacto.Left with template pojo/Pojo.ftl" type exceptions.
After much tries, I have been able to track the error down to the following schema:
https://smg8.ulb.ac.be/hib/SQLdiag.gif . The sql to create the problematic schema is the
following:
https://smg8.ulb.ac.be/hib/create_DB.sql .
The stack trace reported by Hibernate tools through the eclipse error log is here:
https://smg8.ulb.ac.be/hib/stacktrace.log . The configuration files are here:
https://smg8.ulb.ac.be/hib/logback.xml ;
https://smg8.ulb.ac.be/hib/hibernate.reveng.xml ;
https://smg8.ulb.ac.be/hib/persistence.xml .
I have not been able to log anything else from Hibernate other than the error stacktrace
here above, altough I tried to configure logback correctly and enabled sql debugging in
persistence.xml. What is missing to enable detailed log output?
Please tell me if you need any other information. I am beginner in Hibernate. Thank you
for any help or pointer.
Olivier
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: