Open cmoulliard opened 2 months ago
I think we should keep in our backstage template the generation of the content of "application.properties" with the database properties (postgresql, h2, etc) + username and db
I'm more skeptical about the import.sql
file because we are dependent on what code.quarkus.io generates and that could change if the Entity
name change over the time
@aureamunoz WDYT ?
Yes, I think it would be easier to managed and quicker to craft if we need modifications and tailored features
Soon, we will add primaza to resolve such issue ;-)
Issue
When we generate a project using the option
starter=true
withcode.quarkus.io
, then the generated project don't include:%prod.quarkus.hibernate-orm.sql-load-script=import.sql %prod.quarkus.hibernate-orm.database.generation=drop-and-create
-- This file allow to write SQL commands that will be emitted in test and dev. insert into myentity (id, field) values(1, 'field-1'); insert into myentity (id, field) values(2, 'field-2'); insert into myentity (id, field) values(3, 'field-3'); alter sequence myentity_seq restart with 4;