Results 1 to 8 of 8

Thread: how to change map entry key type ?

Hybrid View

  1. #1

    Default how to change map entry key type ?

    Is there way to change a key type from the default String to something else, when defined in:

    <map>
    <entry>
    <key>


    .....

    I need to use Integer wrapper class.

    Any clues ?

  2. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Quote Originally Posted by matt_koss
    Is there way to change a key type from the default String to something else, when defined in:

    <map>
    <entry>
    <key>
    I need to use Integer wrapper class.

    Any clues ?
    Can you not specify type="java.lang.Integer" on the key element? Not sure, just a guess

  3. #3

    Default

    Quote Originally Posted by yatesco
    Can you not specify type="java.lang.Integer" on the key element? Not sure, just a guess
    Do not think so. At least not in 1.2.5. Not sure if version 2.X will support this or what ?

  4. #4
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    No idea then, sorry

  5. #5
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Spring 1.2.7 (and 1.2.6 I think) allow the type attribute (obviously Spring 2.x has this feature also.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  6. #6

    Default

    Quote Originally Posted by costin
    Spring 1.2.7 (and 1.2.6 I think) allow the type attribute (obviously Spring 2.x has this feature also.
    Hold on, are you talking about type of the value, or type of the key ?
    There is a type attrtibute in the value tag, but I am not sure about the key.
    At least dtd does not seem to have it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •