Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0025744 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
design defect | [Openbravo ERP] A. Platform | major | always | 2014-02-17 10:02 | 2014-09-02 09:28 | |||||||
Reporter | jecharri | View Status | public | |||||||||
Assigned To | AugustoMauch | |||||||||||
Priority | urgent | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Any | Database | Any | Java version | ||||||||
OS Version | Database version | Ant version | ||||||||||
Product Version | SCM revision | |||||||||||
Review Assigned To | ||||||||||||
Web browser | Google Chrome | |||||||||||
Modules | Core | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0025744: Problems during the rebuild | |||||||||||
Description | Problems during the rebuild. The problems happens when you have 2 tables with same name but different databse prefix doing reference to same table | |||||||||||
Steps To Reproduce | -create 2 tables --> "sn_table_inv" and "sl_table_inv" -two tables should have a foreign key to same table. For example "c_bpartner" table Execute "ant smartbuild -Dlocal=no" command and you will get similar error to: [java] 0 [main] INFO org.openbravo.base.model.ModelProvider - Building runtime model [java] 12158 [main] ERROR org.openbravo.base.model.NamingUtil - ERROR: Property name computation fails for property BusinessPartner.null using new name tableInvCustomerList there is more then one property with the same name, being robust and renaming property automatically. If this error appears during update.database then this is possibly solved automatically. Otherwise this should be repaired manually by changing the AD_Column.name of the column C_BPartner.null Above error will create a BusinessPartner entity with 2 similar properties: -PROPERTY_TABLEINVCUSTOMERLIST -PROPERTY_TABLEINVCUSTOMERLIST185 Due to that, the developer could have problems if he or she was using method getTableInvCustomerList. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0064740) alostale (manager) 2014-03-03 16:55 |
This happens in case the modules delivering the tables have DBPrefix with length 1 or 2 (see https://code.openbravo.com/erp/devel/pi/file/fbadcf337117/src/org/openbravo/base/model/NamingUtil.java#l327 [^]) |
(0064741) alostale (manager) 2014-03-03 16:57 |
Moving to design defect: fixing it requires to keep old names (PROPERTY_TABLEINVCUSTOMERLIST185) together with new ones in order to maintain API. |
Issue History | |||
Date Modified | Username | Field | Change |
2014-02-17 10:02 | jecharri | New Issue | |
2014-02-17 10:02 | jecharri | Assigned To | => AugustoMauch |
2014-02-17 10:02 | jecharri | Web browser | => Google Chrome |
2014-02-17 10:02 | jecharri | Modules | => Core |
2014-02-17 10:02 | jecharri | Resolution time | => 1395270000 |
2014-02-17 10:02 | jecharri | Triggers an Emergency Pack | => No |
2014-02-17 10:04 | AugustoMauch | Web browser | Google Chrome => Google Chrome |
2014-02-17 10:04 | AugustoMauch | Description Updated | View Revisions |
2014-02-17 10:04 | jecharri | Web browser | Google Chrome => Google Chrome |
2014-02-17 10:04 | jecharri | Description Updated | View Revisions |
2014-02-17 10:04 | jecharri | Steps to Reproduce Updated | View Revisions |
2014-02-24 12:01 | shankarb | Assigned To | AugustoMauch => shankarb |
2014-03-03 16:55 | alostale | Note Added: 0064740 | |
2014-03-03 16:57 | alostale | Web browser | Google Chrome => Google Chrome |
2014-03-03 16:57 | alostale | Note Added: 0064741 | |
2014-03-03 16:57 | alostale | Type | defect => design defect |
2014-03-03 16:57 | alostale | Web browser | Google Chrome => Google Chrome |
2014-03-03 16:57 | alostale | Resolution time | 1395270000 => |
2014-03-03 16:57 | alostale | Target Version | 3.0MP32 => |
2014-09-02 09:28 | shankarb | Assigned To | shankarb => AugustoMauch |
Copyright © 2000 - 2009 MantisBT Group |