users@glassfish.java.net

Re: Generic DAO - problems with Toplink

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Wed, 19 Aug 2009 18:59:43 +0200

yep, it is really an issue of toplink..

questions: how to know which version of toplink is running in my
Glassfish ?? and how can change it if I need ?

or eclipselink...

---------
What I am trying to do:

@XmlType
@MappedSuperclass
public abstract class AbstractArenaEntity<PK_TYPE> {
        @XmlElement
        @Id
        private PK_TYPE id;

        public PK_TYPE getId() {
                return id;
        }

        public void setId(PK_TYPE id) {
                this.id = id;
        }
}

and then to use this superclass to create concrete entites with a
generic PK type ...

but this fails in Glassfish :(