I have Java POJO as this
class LibraryEvent {
String name ;
int id ;
Book book;
}
class Book{
String name;
String author ;
}
How to covert it to avro schema and then to avro record programmatically ? Is there a way to do this by having avro schema and class autogenerated in out folder using annotations? I'm trying to avoid generating schema as string and then filling avro record explicitly.