The type attribute of hibernate mapping files is incorrect.
-----------------------------------------------------------
Key: HIB-221
URL: http://jira.andromda.org/browse/HIB-221
Project: Hibernate Cartridge
Type: Bug
Environment: Andromda 3.4-SNAPSHOT
Uml2 model
Reporter: Benjamin Lerman
Assigned to: Carlos Cuenca
Priority: Blocker
When I generate a model with the current hibernate cartridge, I get mapping
like the following:
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping default-cascade="none">
<class name="net.ambre.andromda.mudmapper.generated.entity.RoomImpl"
table="ROOM" dynamic-insert="false" dynamic-update="false">
<id name="id" type="$identifier.type.fullyQualifiedHibernateType"
unsaved-value="null">
<column name="ID" sql-type="BIGINT"/>
<generator class="native">
</generator>
</id>
<property name="name" type="$fullyQualifiedPropertyType">
<column name="NAME" not-null="true" unique="false"
sql-type="VARCHAR(256)"/>
</property>
<property name="description" type="$fullyQualifiedPropertyType">
<column name="DESCRIPTION" not-null="true" unique="false"
sql-type="VARCHAR(256)"/>
</property>
<many-to-one name="zone"
class="net.ambre.andromda.mudmapper.generated.entity.ZoneImpl"
foreign-key="ROOM_ZONE_FKC" not-null="true" lazy="proxy" fetch="select">
<column name="ZONE_FK" not-null="true" sql-type="VARCHAR(256)"/>
</many-to-one>
<set name="exits" order-by="SOURCE_FK" lazy="true" fetch="select"
inverse="true">
<key foreign-key="EXIT_SOURCE_FKC">
<column name="SOURCE_FK" sql-type="BIGINT"/>
</key>
<one-to-many
class="net.ambre.andromda.mudmapper.generated.entity.ExitImpl"
not-found="exception"/>
</set>
</class>
</hibernate-mapping>
One can check that not a single type attribute is correct. For the id I checked
that I checked that $identifier is a
org.andromda.cartridges.hibernate.metafacades.HibernateEntityAttributeLogicImpl,
but $identifier.type is a
org.andromda.metafacades.emf.uml2.ClassifierFacadeLogicImpl instead of the
hibernate specialized type.
I'll join a minimal model that reproduce the problem.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com