Skip to content

Releases: mohamed-ashraf-bayor/froporec

Froporec 1.4

02 Jan 19:54
Compare
Choose a tag to compare
  • Added 5 Static Factory Methods and 2 Instance Factory Methods to all generated Record classes (except for SuperRecord classes).
    • The generated static factory methods are convenient for creating new instances of the generated Record class, with data from either instances of the POJO (or Record) class being converted, or instances of the Record class being generated, with the possibility of 'overriding' the instances fields values by combining with the use of a Map of custom values for each field.
    • The generated instance factory methods are convenient for creating new instances of the generated Record class, with data from the current instance, and with the possibility of 'overriding' any field value by providing custom values for the desired fields.
  • Added Constants Declarations for fields names, in all generated Record classes (except for SuperRecord classes). Each constant is a String literal with its value being the name of one of the fields of the generated Record class. They are used by the generated factory methods, and can also be accessed from anywhere in your project.
  • Major improvement of collections handling.
  • Minor bug fixes.

Froporec 1.3

28 Mar 21:57
Compare
Choose a tag to compare

Froporec 1.3 released:

  • Deprecated existing annotations: @ GenerateRecord, @ GenerateImmutable. Replaced with: @ Record and @ Immutable, which also provide the new alsoConvert attribute as a replacement of the includeTypes attribute.
  • Added new annotation @SuperRecord allowing to bypass the known limitation of Java Records not able to extend any other class. The mandatory mergeWith attribute allows to specify a list of existing POJO and/or Record classes to extend from. The annotation can also be applied on existing POJO classes.
  • Added new attribute superInterfaces to all annotations. Allows to provide a list of interfaces to be implemented by the generated Record class.
  • Bug fixes and improvements

Froporec 1.2

09 Jan 00:18
Compare
Choose a tag to compare
  • Added new annotation @GenerateImmutable, turning existing Record objects into fully immutable Record objects
  • Enhanced the existing @GenerateRecord annotation to support the new includeTypes attribute (also supported by the new @GenerateImmutable annotation)
  • Bug fixes and performance improvements

Froporec 1.1

28 Nov 06:24
Compare
Choose a tag to compare

1st public version of Froporec annotation processor