Prev Next

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:

  1. cleanAll drops and recreates the configured database schema(s), wiping all existing data, based on every component's merged entitymodel.xml.
  2. loadAll then reloads XML data files across all installed components, typically in this order: seed data first (core reference/status values everything depends on), then seed-initial (first-run setup data like the default admin user), then demo data (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.

loadAll typically loads data files in the order:
Running cleanAll against a database:

More Related questions...

What is Apache OFBiz? What are the main business applications that ship with Apache OFBiz? What is the Entity Engine in OFBiz? What is the Service Engine in OFBiz? What is a component in OFBiz? What is the purpose of the Screen Widget? What is the purpose of the Form Widget? What is a delegator in OFBiz? What is a dispatcher in OFBiz? What is entitymodel.xml used for? How do you define a new entity in OFBiz? How do you define a new service in OFBiz? What is Mini-language (simple-method) in OFBiz? What build tool does OFBiz use? What are the default admin login credentials for a fresh OFBiz install? What are Security Groups and Security Permissions in OFBiz? What is the Party component used for? What are seed, seed-initial, and demo data types in OFBiz? Why does OFBiz use its own Entity Engine instead of a plain JPA/Hibernate ORM? How does a Service Engine call differ from a direct Java method call? What is the difference between SECA and EECA? Explain the execution flow of a synchronous service call in OFBiz? Explain the execution flow of an asynchronous service call in OFBiz? Explain the internal working of the Screen Widget rendering pipeline? What is the difference between a static entity and a view-entity? How does OFBiz cache entity data, and when should the cache be cleared? What is the difference between GenericValue and GenericEntity? Why would you use a dynamic-view-entity instead of a predefined view-entity? Explain the lifecycle of a sales order in OFBiz from cart to fulfillment? How does OFBiz support multi-tenancy? What is the difference between writing a service in Mini-language versus Groovy? How does OFBiz's Job Scheduler execute persisted and recurring jobs? What is the difference between OFBiz's ModelEntity and ModelService? How do you troubleshoot a service invocation failure using OFBiz logs? Explain the internal working of the OFBiz security/permission checking framework? What is the difference between a screen decorator and a plain screen definition? When should you use a stored/Java service instead of a Mini-language service? How does Distributed Cache Clear (DCC) keep entity caches consistent across a cluster? What happens internally when you run "gradlew cleanAll loadAll"? What is the difference between the plugins directory and the older hot-deploy directory? How can you optimize entity queries in OFBiz for large datasets? What is the difference between the Order Manager and Accounting components? Explain the execution flow of an inbound web request through OFBiz's Control Servlet? How do Entity ECAs enforce validation rules without modifying core Java code? Why doesn't OFBiz ship with a traditional MVC framework like Spring MVC? How can you extend an existing core entity without modifying core framework files? What is the difference between the Fluid and default (Bootstrap-based) OFBiz themes? How does OFBiz integrate with Apache Solr for product search? What is the difference between OFBiz's REST/SOAP service export and calling a service internally? How do you troubleshoot a permission denied error accessing a screen?
Show more question and Answers...


Comments & Discussions