Results 1 to 2 of 2

Thread: Bag / Set

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    4

    Default Bag / Set

    When I have to use some object's data collection like Bag or Set in hibernate I have to stay inside a hibernate's session

    When I use object of type Set I have a corresponding in Java, but when I have to use a Bag object I don't know which type object I could use with Spring...

    My question is: how can I to use objects of type Bag in Spring??

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    "Bag" defines Hibernate semantics, not a type. From the Hibernate reference manual:

    Hibernate can persist instances of java.util.Map, java.util.Set, java.util.SortedMap, java.util.SortedSet, java.util.List, and any array of persistent entities or values. Properties of type java.util.Collection or java.util.List may also be persisted with "bag" semantics.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

Posting Permissions

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