Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0007186 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | have not tried | 2009-01-28 11:30 | 2009-04-21 12:39 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | mtaal | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 12517 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | pi | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0007186: update.database does use some generated/to be compiled classes but the ant dependencies do not reflect this | |||||||
Description | ... meaning that a developer has to manually use generate.entities to be able to run update.database. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0012833) mtaal (viewer) 2009-01-29 16:49 |
I tried to implement a limited generate entities but this would take a fair amount of time (days) to implement as there are a fair amount of dependencies between tables. The result would be a limited model which is fairly big and the time savings are limited. Note that the time saving for a limited model would only apply in one case: when doing an update.database after an upgrade this one case only applies once per installation. Let me know if I missed other cases. I am changing the generate.entities to only be run if the relevant tables in the database change. I will add this 'smart' gen entities as a dependency of update.database. gr. Martin |
(0012843) shuehner (administrator) 2009-01-29 17:36 |
Sounds good, solves the missing classes problem with the new dependency but keeping runtime still low in most cases. |
(0012859) svnbot (viewer) 2009-01-29 19:34 |
Repository: openbravo Revision: 12517 Author: mtaal Date: 2009-01-29 19:34:05 +0100 (Thu, 29 Jan 2009) Added generate.entities.quick task which only generates entities if the Application Dictionary has changed since the last time the entities were generated. Added generate.entities.quick as a dependency of update.database, is also executed after update.database fixes issue 7186 update.database does use some generated/to be compiled classes but the ant dependencies do not reflect this --- U trunk/build.xml U trunk/src/build.xml U trunk/src/org/openbravo/base/gen/GenerateEntitiesTask.java U trunk/src/org/openbravo/base/model/Column.hbm.xml U trunk/src/org/openbravo/base/model/ModelObject.java U trunk/src/org/openbravo/base/model/ModelProvider.java U trunk/src/org/openbravo/base/model/Module.hbm.xml U trunk/src/org/openbravo/base/model/Package.hbm.xml U trunk/src/org/openbravo/base/model/RefList.hbm.xml U trunk/src/org/openbravo/base/model/RefSearch.hbm.xml U trunk/src/org/openbravo/base/model/RefTable.hbm.xml U trunk/src/org/openbravo/base/model/Reference.hbm.xml U trunk/src/org/openbravo/base/model/Table.hbm.xml U trunk/src/org/openbravo/service/db/ReferenceDataTask.java U trunk/src/org/openbravo/service/system/SystemService.java A trunk/src-test/org/openbravo/test/ant/AntTasksTest.java D trunk/src-test/org/openbravo/test/ant/CompileCompleteTest.java U trunk/src-test/org/openbravo/test/base/BaseTest.java --- https://dev.openbravo.com/websvn/openbravo/?rev=12517&sc=1 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2009-01-28 11:30 | shuehner | New Issue | |
2009-01-28 11:30 | shuehner | Assigned To | => mtaal |
2009-01-28 11:30 | shuehner | sf_bug_id | 0 => 2542719 |
2009-01-28 11:30 | shuehner | OBNetwork customer | => No |
2009-01-28 11:30 | shuehner | Regression testing | => No |
2009-01-29 16:49 | mtaal | Note Added: 0012833 | |
2009-01-29 17:36 | shuehner | Note Added: 0012843 | |
2009-01-29 19:34 | svnbot | Checkin | |
2009-01-29 19:34 | svnbot | Note Added: 0012859 | |
2009-01-29 19:34 | svnbot | Status | new => resolved |
2009-01-29 19:34 | svnbot | Resolution | open => fixed |
2009-01-29 19:34 | svnbot | svn_revision | => 12517 |
2009-04-21 12:39 | psarobe | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |