New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing spaces in the super powers #22
Comments
That's what was on the most recent export I got from https://raw.githubusercontent.com/cescoffier/supes-data/master/heroes-import.sql https://raw.githubusercontent.com/cescoffier/supes-data/master/villains-import.sql |
Yeah, I would need to regenerate these files too. |
I notice there are some json files as well in that repo you have. Do those json files contain all the same records? It looks like it uses an array of strings and the powers have spaces in them. If so, I bet I could write a quick script which re-generates the sql files from that. |
Maybe this is also a good opportunity to separate the persistence model from the view model and use Mapstruct in between? Maybe the persistence model stores the powers as a |
@cescoffier How's this? https://raw.githubusercontent.com/quarkusio/quarkus-super-heroes/characterdata/all-heroes.sql https://raw.githubusercontent.com/quarkusio/quarkus-super-heroes/characterdata/all-villains.sql I pulled in the json files in your repo into the It can be run like If this looks good to you I'll move it into the |
Looks great! What about using JBang instead of Groovy? It will make @maxandersen happy. |
Java is so over-complicated when it comes to things like this :) You see how simple it is in Groovy since dealing with structured data is part of the language itself. |
The
imports.sql
had an import issue. The superpowers are missing some spaces.For example:
WillInvisibilityLongevityMaster
. It should be "Will Invisibility Longevity Master"The text was updated successfully, but these errors were encountered: