Collection type "map" doesn't work

Description

In my model there are two entities: Property(name, value) and Entity(...)

Assosiation End A
name: entity
multiplicity: 1
Element A: Entity

Assosiation End B
name: properties
multiplicity: 0..*
Element B: Property

Assosiation end B is taggeg with:
andromda.hibernate.collection.type=map
andromda.hibernate.collection.index=name

In generated hbm file there is:
<map name="properties" order-by="ENTITY_FK" lazy="false" outer-join="auto" inverse="true" cascade="delete">
<key>
<column name="ENTITY_FK"/>
</key>
<one-to-many class="pl.com.bull.pifc.repository.persistence.PropertyImpl"/>
</map>

1. <one-to-many> element is generated, is produces an error:
SEVERE: Could not configure datastore from file: ...
net.sf.hibernate.MappingException: invalid mapping
at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:174)
at net.sf.hibernate.tool.hbm2ddl.SchemaExport.main(SchemaExport.java:289)
Caused by: org.xml.sax.SAXParseException: Element "map" does not allow "one-to-many" here.

2. <index> element is not generated

3. In java file properties is of wrong type: Collection instead of Map

SNAPHSOT-RC1 (09-03-2005)

Environment

None

Status

Assignee

MichaelM

Reporter

Michal Bielecki

Labels

None

Components

Fix versions

Affects versions

3.0-RC1

Priority

Minor
Configure