Closed mjanuszkiewicz-tt closed 1 year ago
Tests are failing
Tests are failing
Fixed, the @Singular
annotation means that if we don't add an element we now generate an empty list instead of not outputting a field at all. I will make sure we don't do something weird where missing filed != field with empty list.
How does it work with naming?
@Singular
List<String> withinCountries;
Would be:
builder
.withinCountry("Country 1")
.withinCountry("Country 2")
?
How does it work with naming?
@Singular List<String> withinCountries;
Would be:
builder .withinCountry("Country 1") .withinCountry("Country 2")
?
Yes. if lombok can't figure out a singular form it won't compile unless you set it manually.
How does it work with naming?
@Singular List<String> withinCountries;
Would be:
builder .withinCountry("Country 1") .withinCountry("Country 2")
?
Yes. if lombok can't figure out a singular form it won't compile unless you set it manually.
So a bit of magical code generation via annotations :D
So a bit of magical code generation via annotations :D
Yeah, lombok does a lot of heavy lifting for stuff like this.
Can you please update readme and examples?
Allows us to use
instead of
Technically a breaking change since previously a call to
properties
overrode the previously set properties, not it's essentially anaddAll
call. To reset the user would have to callclearProperties
. I guess this means if merged we would have to increment a major version.Soliciting ideas for singular names for