Comments (7)
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
from quarkus-super-heroes.
Yeah, I would need to regenerate these files too.
from quarkus-super-heroes.
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.
from quarkus-super-heroes.
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 List<String>
and the view model just uses String
?
from quarkus-super-heroes.
@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 characterdata
branch and then I created a script which generates the SQL files from the json files: https://raw.githubusercontent.com/quarkusio/quarkus-super-heroes/characterdata/generate-sql-from-json.groovy (things like this are VERY trivial in Groovy!)
It can be run like groovy generate-sql-from-json.groovy all-heroes.json all-heroes.sql hero
(for Heroes) and groovy generate-sql-from-json.groovy all-villains.json all-villains.sql villain
(for Villains).
If this looks good to you I'll move it into the main
branch and re-run my script which randomly grabs 100 of each
from quarkus-super-heroes.
Looks great! What about using JBang instead of Groovy? It will make @maxandersen happy.
from quarkus-super-heroes.
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.
from quarkus-super-heroes.
Related Issues (20)
- Rewrite UI in a more modern framework HOT 1
- Indicate generated yaml by .gitignore-ing it and including a comment indicating it's generated (to reduce maintenance effort for contributors) HOT 23
- Clean up various kubernetes profiles config HOT 4
- Add a narration microservice that can narrate fights
- Fight microservice website information is outdated
- InvalidDefinitionException with Instant in tests with quarkus dev mode HOT 5
- Missing config key in hero register rest client annotation
- Support native compilation in narration service HOT 1
- Introduce Java 21 HOT 8
- Introduce some gRPC? HOT 1
- Update azure containerapps docs & script with narration service
- Introduce some gRPC?
- Stork env vars not working properly when deployed to k8s HOT 4
- Switch narration app to use quarkus-langchain4j HOT 12
- Change fighters/location UI around a bit to use flip cards
- Add microcks to UI service
- Add openshift-ai integration into narration service
- NoSuchElement on Configuration of rest-fights HOT 2
- Weird CORS bug when pressing "fights" HOT 10
- Weird MongoDB error when running the rest-fights service with Quarkus dev HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarkus-super-heroes.