Eddie Hsiung wrote:
hi,
is there anyway for me to map an association explicitly into
java.util.List instead of java.util.Collection in the generated source
code?
Yes, just set the association as {ordered} (you can do that from the UML
tool).
i need to access the remove(int index) method from the List and i
don't want to cast a Collection into List.
another question, does anyone know what whould happen if i new an
ArrayList and pass it into a setter method that takes Collection as
its parameter while this association is mapped as a "set" in the
hibernate descriptor?
You'll probably get a class cast from hibernate.
thanks a lot!
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user