Salut,

J'ai un souci dans mon projet de mapping avec hibernate-tools-3.2.0.beta9a.jar,

Tout est bon dans le projet, par ce que ca marchait avec MySql,

mais quand j'ai voulu le lancer sur DB2 ca donne l exception :


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
**********
 
Expression property.value.propertyIterator is undefined on line 56, column 30 in hbm/id.hbm.ftl.
The problematic instruction:
----------
==> foreach keyproperty in property.value.propertyIterator [on line 56, column 5 in hbm/id.hbm.ftl]
 in include "id.hbm.ftl" [on line 72, column 2 in hbm/persistentclass.hbm.ftl]
 in include "persistentclass.hbm.ftl" [on line 34, column 1 in hbm/hibernate-mapping.hbm.ftl]
----------
 
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression property.value.propertyIterator is undefined on line 56, column 30 in hbm/id.hbm.ftl.
	at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
	at freemarker.core.IteratorBlock.accept(IteratorBlock.java:93)
	at freemarker.core.Environment.visit(Environment.java:196)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:196)
	at freemarker.core.IfBlock.accept(IfBlock.java:82)
	at freemarker.core.Environment.visit(Environment.java:196)
	at freemarker.core.Environment.include(Environment.java:1375)
	at freemarker.core.Include.accept(Include.java:155)
	at freemarker.core.Environment.visit(Environment.java:196)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:196)
	at freemarker.core.IfBlock.accept(IfBlock.java:82)
	at freemarker.core.Environment.visit(Environment.java:196)
	at freemarker.core.IfBlock.accept(IfBlock.java:82)
	at freemarker.core.Environment.visit(Environment.java:196)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:196)
	at freemarker.core.Environment.include(Environment.java:1375)
	at freemarker.core.Include.accept(Include.java:155)
	at freemarker.core.Environment.visit(Environment.java:196)
	at freemarker.core.MixedContent.accept(MixedContent.java:92)
	at freemarker.core.Environment.visit(Environment.java:196)
	at freemarker.core.Environment.process(Environment.java:176)
	at freemarker.template.Template.process(Template.java:231)
	at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247)
	at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67)
	at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28)
	at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97)
	at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:146)
	at org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(GenericExporter.java:135)
	at org.hibernate.tool.hbm2x.GenericExporter$2.process(GenericExporter.java:41)
	at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:126)
	at org.hibernate.tool.hbm2x.HibernateMappingExporter.doStart(HibernateMappingExporter.java:34)
	at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$1.execute(CodeGenerationLaunchDelegate.java:257)
	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
	at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:89)
	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:228)
	at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:130)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:639)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:565)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:754)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:944)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

*************


Si quelqu'un a une solution pour ca

Merci d'avance pour votre aide