title: Avro Schema to create nested java class
body: <p>Is there anyway to create an Avro schema(avsc file) which can generate java class similar to below.</p>
  <p><strong>Event class has to be created inside GenericEvent class.</strong></p>
  <pre><code>@Data
  public class GenericEvent {
      private Integer version;
      private List&lt;Event&gt; events;
      @Data
      private class Event {
          private String id;
          private String event_type;
      }
  }
  </code></pre>