Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C5EFDE03 for ; Mon, 19 Nov 2012 05:17:02 +0000 (UTC) Received: (qmail 76498 invoked by uid 500); 19 Nov 2012 05:17:01 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 76150 invoked by uid 500); 19 Nov 2012 05:17:01 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 75951 invoked by uid 99); 19 Nov 2012 05:16:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 05:16:58 +0000 Date: Mon, 19 Nov 2012 05:16:58 +0000 (UTC) From: "Sharmarke Aden (JIRA)" To: dev@avro.apache.org Message-ID: <1042737271.1587.1353302218589.JavaMail.jiratomcat@arcas> In-Reply-To: <2136807846.114172.1352908453154.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (AVRO-1205) Add Stereotype Annotation to Generated Beans MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sharmarke Aden updated AVRO-1205: --------------------------------- Attachment: vcs-diff6870599675664484518.patch > Add Stereotype Annotation to Generated Beans > -------------------------------------------- > > Key: AVRO-1205 > URL: https://issues.apache.org/jira/browse/AVRO-1205 > Project: Avro > Issue Type: New Feature > Components: java > Affects Versions: 1.7.2 > Reporter: Sharmarke Aden > Priority: Minor > Attachments: vcs-diff6870599675664484518.patch > > > Avro generated schema beans currently lack a formal way of distinguishing them as Avro schema beans at runtime. I would like to propose that a new stereotype annotation be added to Avro Core and the ability to have all Avro generated schema beans annotated with this newly created stereotype annotation. > I'm planning on adding a FallbackTypeConverter to the Camel-Avro project and I hoping this feature will allow me to cleanly detect Avro beans for conversion at runtime. > If this feature is implemented Avro schema beans would look something like this: > {code} > ... > @org.apache.avro.reflect.AvroSchema > public class User extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { > ... > } > ... > {code} > The maven plugin configuration would look something like this: > {code} > > org.apache.avro > avro-maven-plugin > > > > schema > > > > > true > > > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira