0 Replies Latest reply on Jan 6, 2006 1:44 PM by Craig Lovell

    Mapping a collection of primitives

    Craig Lovell Newbie

      How do you annotate an entity that contains a collection of primitives (say, a Set)?

      I'm coming from the Hibernate/POJO world where I used to use jmxdoclet and @hibernate.set, @hibernate.collection-element and @hibernate.collection-key for this kind of mapping. I don't see the equivalent EJB3 annotations though.

      Can someone point me to an example of this? The examples I've found are all @OneToMany with collections of other entities. Thanks!