surrealdb / surrealdb.java

SurrealDB SDK for Java
https://surrealdb.com
Apache License 2.0
67 stars 21 forks source link

Replace DTOs with java records #20

Closed eharrow closed 1 year ago

eharrow commented 1 year ago

Please consider this simple refactoring PR:

  1. Replaces the use of the java DTO with logbook pattern with the new immutable Java Records instances.
  2. Upgrades Gson to a newer version supporting Java Records when marshalling the response.
  3. A fair bit of simple boilerplate code removed.
  4. It possibly removes the need for the Lombok dependency.
  5. Current unit tests all green.