java - Exceed the amount of parameters in a method -


i using apache avro tool generate schema class .avsc file. running issue have more 300 fields in avro schema, causes "java error: many parameters" when using class. (because each field in schema 1 parameter in schema class constructor). java has limit of 255 parameters in method.

i know may able resolve issue using generic record (instead of avro tool , class generation). before restructured whole thing, there workaround?

your schema design pretty bad if table (class) has 300 fields.

find way break data down multiple classes , multiple tables.

reading on database normalization start.


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -