Hi,
hbm2cfgxml is adding mapping resource lines for subclasses, which don’t have a mapping file included as input.
This of course renders an unusable cfg.xml file, as those mapping files do not exist.
Is it any way to modify this behavior?
Relevant portion of the output follows.
Thanks in advance
prepare:
db-create-hibernate-mapping-files:
[delete] Deleting 106 files from C:\projects\core\src\hbm
...
[hibernatedoclet] Generating mapping file for com.bps.iproject.domain.project.Step.
[hibernatedoclet] com.bps.iproject.domain.project.Step
[hibernatedoclet] com.bps.iproject.domain.project.RemediationPlanStep
[hibernatedoclet] com.bps.iproject.domain.project.TaskStep
...
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2cfgxml (Generates hibernate.cfg.xml)
[hibernatetool] Jan 18, 2007 10:20:32 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: Hibernate 3.2.0.cr5
[hibernatetool] Jan 18, 2007 10:20:32 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: hibernate.properties not found
[hibernatetool] Jan 18, 2007 10:20:32 AM org.hibernate.cfg.Environment buildBytecodeProvider
[hibernatetool] INFO: Bytecode provider name : cglib
[hibernatetool] Jan 18, 2007 10:20:32 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: using JDK 1.4 java.sql.Timestamp handling
...
[hibernatetool] Jan 18, 2007 10:20:35 AM org.hibernate.cfg.Configuration addFile
[hibernatetool] INFO: Reading mappings from file: C:\projects\core\src\hbm\com\bps\iproject\domain\project\Step.hbm.xml
[hibernatetool] Jan 18, 2007 10:20:35 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
[hibernatetool] INFO: Mapping class: com.bps.iproject.domain.project.Step -> Steps
[hibernatetool] Jan 18, 2007 10:20:35 AM org.hibernate.cfg.HbmBinder bindSubclass
[hibernatetool] INFO: Mapping subclass: com.bps.iproject.domain.project.RemediationPlanStep -> Steps
[hibernatetool] Jan 18, 2007 10:20:35 AM org.hibernate.cfg.HbmBinder bindSubclass
[hibernatetool] INFO: Mapping subclass: com.bps.iproject.domain.project.TaskStep -> Steps
[hibernatetool] Jan 18, 2007 10:20:37 AM org.hibernate.tool.Version <clinit>
...
[hibernatetool] INFO: Hibernate Tools 3.2.0.b9
BUILD SUCCESSFUL
Total time: 1 minute 2 seconds
|