users@glassfish.java.net

Map as an entity column

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 Mar 2007 07:38:15 PST

hey,

I tried to set a MAP as an entity column as:

       @Column(name="NAMES")
        @Basic @Lob
        public Map<String, String> getNames() {
                return names;
        }



But I get an exception that MAP cannot be serialized,
I tried to create my own empty MAP class that extends Java's MAP and implements Serializable but then I get an exception that my map does not stands java generics rules,


is there any way to map a MAP column of an entity?


thanks.
[Message sent by forum member 'demiant' (demiant)]

http://forums.java.net/jive/thread.jspa?messageID=208125