1. A computer program product, the computer program product comprising a non-transitory computer readable storage medium having program code embodied therewith, the program code executable by at least one processor to perform operations of: generating a view schema from a view definition, wherein the view schema includes one or more relational views that are created by translating one or more object queries in the view definition into one or more relational queries; generating a report design schema from the view definition by: creating one or more report tables that correspond to the one or more relational views of the view schema; and extending the one or more report tables with one or more primary key constraints and one or more foreign key constraints; generating a reporting model by reverse engineering the report design schema, wherein the reporting model includes the one or more primary key constraints and the one or more foreign key constraints; and generating a report using the reporting model, wherein the report includes the one or more primary key constraints and the one or more foreign key constraints.
1. A computer program product, the computer program product comprising a non-transitory computer readable storage medium having program code embodied therewith, the program code executable by at least one processor to perform operations of: generating a view schema from a view definition, wherein the view schema includes one or more relational views that are created by translating one or more object queries in the view definition into one or more relational queries; generating a report design schema from the view definition by: creating one or more report tables that correspond to the one or more relational views of the view schema; and extending the one or more report tables with one or more primary key constraints and one or more foreign key constraints; generating a reporting model by reverse engineering the report design schema, wherein the reporting model includes the one or more primary key constraints and the one or more foreign key constraints; and generating a report using the reporting model, wherein the report includes the one or more primary key constraints and the one or more foreign key constraints. 5. The computer program product of claim 1 , wherein a query of the one or more relational views accesses data stored in object-relational mapping tables in an object-relational mapping schema.