Re: Help to query!!

From: Mike Kienenberger (mkienen..laska.net)
Date: Tue Aug 03 2004 - 18:10:30 EDT

  • Next message: Todd O'Bryan: "Enumerations"

    Reinaldo Coelho Sartorelli <reinaldo_sartorell..ahoo.com.br> wrote:
    > On Tuesday 03 August 2004 16:59, Mike Kienenberger wrote:
    > > Thrown when an application tries to create an instance of a class using
    the
    > > newInstance method in class Class, but the specified class object cannot
    be
    > > instantiated because it is an interface or is an abstract class.
    > >
    > > This makes me think that "br.com.leiarock.mapeamento.Generos" is not a
    > > subclass of CayenneDataObject, or that it's been manually set to be
    > > abstract. Hope this helps. Make sure that you are creating Generos
    using
    > > the Cayenne Modeler tool.
    >
    > I create all objects from Cayenne Modeler, i have classes _Generos and
    > Generos.
    >
    > Created by Cayenne Modeler, into package br.com.leiarock.mapeamento.
    >
    > The inserts in PostgreSQL was correct, but to generate a query generate
    the
    > error.

    That's very strange. The java exception documentation is pretty clear that
    it's only thrown when "the specified class object [...] is an interface or
    is an abstract class."

    You may have to wait until someone more knowledgeable than I is around to
    help you.

    -Mike



    This archive was generated by hypermail 2.0.0 : Tue Aug 03 2004 - 18:09:44 EDT