ArmouredWizard,
@ArmouredWizard@dice.camp avatar

Latest problem:
Special Abilities are stored as List<String>
Hand-knitted TypeConverter is splitting on comma when retrieved from database (as that is how Lists are stored)
Solutions?

  • convert using JSON or some other library
  • rewrite Converter
  • rebuild schema to make Abilities their own table, linked Many-to-Many (scoundrels have Many Abilities, Abilities can be had by Many Scoundrels). This is probably the better way, long term, but introduces a new layer of complexity...
bocops,
@bocops@fosstodon.org avatar

You could also change how the lists are stored in the first place, using .joinToString(separator = "...") on your list.

Unless you can really find a separator character that will never be used, JSON seems to be the safer bet, though. :)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Kotlin
  • kavyap
  • thenastyranch
  • ethstaker
  • InstantRegret
  • osvaldo12
  • DreamBathrooms
  • Durango
  • magazineikmin
  • khanakhh
  • Youngstown
  • everett
  • slotface
  • rosin
  • mdbf
  • provamag3
  • ngwrru68w68
  • tacticalgear
  • cubers
  • GTA5RPClips
  • modclub
  • Leos
  • tester
  • megavids
  • cisconetworking
  • normalnudes
  • anitta
  • JUstTest
  • lostlight
  • All magazines