Web / Apache OFBiz Interview questions
What is the difference between OFBiz's ModelEntity and ModelService?
ModelEntity is the in-memory, parsed representation of one entity's definition from entitymodel.xml - its fields, types, primary key, and relations - used by the Entity Engine to validate queries and generate SQL.
ModelService is the equivalent parsed representation for a service definition from a *Services.xml file - its name, engine, and IN/OUT/INOUT attribute list - used by the Service Engine to validate calls and generate parameter-checking logic before a service implementation ever runs.
Both are loaded once at startup into shared, cached model maps, which is why adding a brand-new entity or service usually needs a server restart, or an explicit model reload, to take effect rather than being picked up live.
More Related questions...