Hi,
I am using hibernate tools 3.2.2 Beta for code generation.
I am not able to generate hibernate mapping files for the tables with kind of constaints. Example could be,
Table : EAI_SS_LOOKUP
Columns :
STYLESHEET_ID
ENDPOINT_ID
Constraints:
Constraint Name |Key Type |Columns
---------------------------------------------------------------------------------
QUEUE_ID |Primary |STYLESHEET_ID,ENDPOINT_ID
R_108 |Foreign |STYLESHEET_ID ON EAI_STYLESHEET
R_115 |Foreign |ENDPOINT_ID ON EAI_ENDPOINT
I tried multiple combinations in reverse engineering file but was not able to resolve this issue. The error I am getting while generating code is :
----------
==> foreach keyproperty in property.value.propertyIterator [on line 58, 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 58, column 30 in hbm/id.hbm.ftl.
Please help me out.This is very critical. I dont want to write mapping files for 50 tables :((
|