Skip to content

Release 1.0.1#11

Merged
JanHolger merged 21 commits into
masterfrom
dev
Jan 19, 2022
Merged

Release 1.0.1#11
JanHolger merged 21 commits into
masterfrom
dev

Conversation

@JanHolger

Copy link
Copy Markdown
Member

Added:

  • New self-implemented JsonParser and JsonDumper implementation
  • New self-implemented Mapper
  • Support for ordering fields using the order attribute in @MapperOptions
  • Support for additional attributes by adding @Additional to a field of type AbstractObject
  • Support for deserializing types with generic type arguments (Set, List, Map)
  • Support for accessing the context (field, annotations, ...) in custom type adapters
  • Stream API collectors for AbstractArray and AbstractObject that can be accessed using the static methods AbstractArray.collect() and AbstractObject.collect()
  • Bson Support (bson library is marked optional and needs to be added to the classpath manually)

Fixed:

  • QueryString keys weren't encoded/decoded properly
  • Json String length limit of 1500

Deprecated:

  • AbstractMapper (see the Mapper class for the new api)

Removed:

  • Gson dependency
  • Gson util classes (GsonAbstractDataAdapter, GsonEnum, GsonEnumAdapter, GsonListDeserializer, GsonMapDeserializer)

Required Changes:

  • The old AbstractMapper got deprecated and should be replaced by the new Mapper
  • Because gson isn't used for mapping anymore, you need to make sure to replace all gson annotations (@SerializedName, @Expose, ...) to @MapperOptions

Comment thread src/main/java/org/javawebstack/abstractdata/mapper/DefaultMappers.java Outdated
@JanHolger JanHolger requested a review from x7airworker January 19, 2022 20:52
@JanHolger JanHolger merged commit 352af2d into master Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants