0 Replies Latest reply on Jan 28, 2009 10:36 AM by vanyatka

    Proper location of SqlResultSetMapping

    vanyatka

      Hi,

      I wonder what should be the location of

      @SqlResultSetMapping(
       name = "kladrRS",
       columns = {
       @ColumnResult(name = "name"),
       @ColumnResult(name = "socr"),
       @ColumnResult(name = "code")
       }
       )

      annotation, so that JPA would find it? In case I put it to one of the Entities JPA founds it all right, but logically it belongs to some "action" class which doesn't have @Entity annotation.

      Can anyone suggest where should I put this annotation and how can I make JPA find it?

      Thanks a lot,