Web / Apache OFBiz Interview questions
What happens internally when you run "gradlew cleanAll loadAll"?
cleanAll and loadAll are two separate Gradle tasks usually run together during setup or a full reset:
cleanAlldrops and recreates the configured database schema(s), wiping all existing data, based on every component's mergedentitymodel.xml.loadAllthen reloads XML data files across all installed components, typically in this order:seeddata first (core reference/status values everything depends on), thenseed-initial(first-run setup data like the default admin user), thendemodata (sample products, parties, and orders) if present.
Because the Entity Engine derives the schema fresh from the current entitymodel.xml definitions each time, this combination is also the standard way to pick up newly added entities or fields during development, rather than hand-writing an ALTER TABLE statement.
Running this against a real production database is destructive, so it's normally reserved for local development and demo environments only.
More Related questions...