[ http://jira.andromda.org/browse/EJB-40?page=all ]

Sverker Abrahamsson updated EJB-40:
-----------------------------------

    Attachment: andromda-plugins.patch

> Map associations are not generated correctly and list index imporvement
> -----------------------------------------------------------------------
>
>          Key: EJB-40
>          URL: http://jira.andromda.org/browse/EJB-40
>      Project: EJB Cartridge
>         Type: Bug

>     Reporter: Sverker Abrahamsson
>     Assignee: Vance Karimi
>     Priority: Minor
>  Attachments: andromda-plugins.patch
>
> When modeling map associations the file is not generated correctly. An 
> example:
>     private java.util.Map<foo.bar.Country> countries = new 
> java.util.HashMap<java.lang.String, foo.bar.Country>();
> Another problem is that the key is declared by default as String, and not as 
> the type of the MapKey column. The MapKey annotation use the primary key on 
> the associated entity, hence my example should look like this:
>     private java.util.Map<java.lang.Long, foo.bar.Country> countries = new 
> java.util.HashMap<java.lang.Lang, foo.bar.Country>();
> as my pk is a Long.
> The attached patch solves this issue as well as providing an improvement in 
> regards to List associations. If no OrderBy tagged value is provided, the 
> IndexColumn annotation is used (hibernate extension) to provide true list 
> association.

-- 
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


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Reply via email to