views:

15

answers:

0

I have Something like

public GenericEntity<T, PK> {
  // methods and fields
}

public MyTable extends GenericEntity<MyTable, Integer> {
  // methods and fields
}

And then on my webmethod I'm returning a type of MyTable. This is giving me problems because of the generic type. Is there a way to supress the schema generation for the GenericEntity?

All I really want is to transfer the data from MyData.

I tried to the following and it didn't work:

    @XmlTransient
    public GenericEntity<T, PK> {
      // methods and fields
    }

    @XmlRootElement
    public MyTable extends GenericEntity<MyTable, Integer> {
      // methods and fields
    }