/pojo-to-bytes

Field Ordering during Reflection API using Annotation

Primary LanguageJavaMIT LicenseMIT

Annotation Based Fields Ordering for POJO to Bytes Conversion using Reflection API

A Java program to convert POJOs (Plain Old Java Objects) to bytes using Reflection with certain ordering.

Usage: Use @SelObject annotation on Class level Use @FieldOrder annotation on Field level. This annotation represents the ordering level while using Reflection API. The field which does not contain the annotation will be ignored.

Licensing: java-lib is licensed under MIT License