Skip to main content

[jpa-spec users] [jsr338-experts] Method signature in EntityGraph.addSubclassSubgraph()

  • From: Pinaki Poddar <ppoddar@...>
  • To: jsr338-experts@...
  • Subject: [jpa-spec users] [jsr338-experts] Method signature in EntityGraph.addSubclassSubgraph()
  • Date: Wed, 24 Apr 2013 12:04:40 -0700
  • List-id: <jsr338-experts.jpa-spec.java.net>

Following method signature is defined in EntityGraph<T> interface

    /**
     * Add additional attributes to this entity graph that
     * correspond to attributes of subclasses of this EntityGraph's
     * entity type.  ...
    **/
public <T> Subgraph<? extends T> addSubclassSubgraph(Class<? extends T> type);
   

Should the correct signature be
   public <S extends T> Subgraph<S> addSubclassSubgraph(Class<S> type);


Otherwise, the current signature <T> will hide
Regards --

Pinaki Poddar                          
Chair, Apache OpenJPA Project           http://openjpa.apache.org/
JPA Expert Group Member
Application & Integration Middleware






[jpa-spec users] [jsr338-experts] Method signature in EntityGraph.addSubclassSubgraph()

Pinaki Poddar 04/24/2013
 
 
Close
loading
Please Confirm
Close