Re: svn commit: r596798 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/ apache/cayenne: BaseContext.java CayenneContext.java ObjectContext.java access/DataContext.java query/NamedQuery.java

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Nov 20 2007 - 15:10:34 EST

  • Next message: Andrus Adamchik: "Re: generics and ObjectContext"

    On Nov 20, 2007, at 10:05 PM, Kevin Menard wrote:

    > Forgive my ignorance, but what is the reason for making these
    > Collection<?>
    > rather than Collection<? extends Persistent> ? Is it for JPA POJO
    > support?

    Yes, it is for POJO support (not only JPA). I.e. at compile time your
    classes may not implement Persistent. I already ran into problem with
    POJO integration tests with "newObject" returning Persistent that is
    being assigned to a concrete type that is not Persistent at compile
    time.

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Nov 20 2007 - 15:11:14 EST