[ http://jira.andromda.org/browse/HIB-147?page=history ]
     
Carlos Cuenca closed HIB-147:
-----------------------------

     Resolution: Fixed
    Fix Version: 3.1-RC1

fixed on CVS.

> The <id> attribute does not honor mapping file
> ----------------------------------------------
>
>          Key: HIB-147
>          URL: http://jira.andromda.org/browse/HIB-147
>      Project: Hibernate Cartridge
>         Type: Bug
>     Versions: 3.1-RC1
>  Environment: Any
>     Reporter: Naresh Bhatia
>     Assignee: Carlos Cuenca
>      Fix For: 3.1-RC1

>
> When generating a hibernate mapping file, the mappings specified in 
> HibernateTypeMappings.xml are not honored for the <id> attribute. For all 
> other situations the correct type is picked up from Hibernate mappings.
> To reproduce this problem, specify the following mapping for a Long in 
> HibernateTypeMappings.xml:
>     <mapping>
>         <from>datatype::Long</from>
>         <to>org.andromda.types.MyLongType</to>
>     </mapping>
> Now generate a mapping file for any entity. You will find that the type in 
> the <id> element is still generated as java.lang.Long as shown below:
>     <id name="id" type="java.lang.Long" unsaved-value="null">
>         <column name="ID" sql-type="NUMBER(19)"/>
>         <generator class="native">
>         </generator>
>     </id>
> In other words, AndroMDA is always picking up the mapping from Java mappings 
> instead of Hibernate mappings.




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information

Reply via email to