Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0041427
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] External Integration Infrastructuremajorhave not tried2019-07-23 10:042019-07-29 11:07
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisiona38e295dbf54
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned ToAugustoMauch
Regression introduced in release
Summary

0041427: Not possible to define one-to-many mappings for some entities

DescriptionIt is not possible to define one-to-many mappings from those entities whose entity name is different from its simple class name.
Steps To Reproduce0) Install the external integration module for testing[1]
1) Apply the attached patch
2) Execute ant smartbuild -Dlocal=no
3) Run the PriceListImportTest test. Note that it fails with the following error:

org.openbravo.base.util.CheckException: Mapping name: PriceListVersion not found in runtime model

[1] https://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration.tests [^]
    
TagsNo tags attached.
Attached Filesdiff file icon test_41427.diff [^] (19,580 bytes) 2019-07-23 10:30 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0113586)
hgbot (developer)
2019-07-23 10:45

Repository: erp/pmods/org.openbravo.service.external.integration
Changeset: a38e295dbf54248dc1ca1e771e5e7289a5912efc
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Jul 23 10:38:55 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration/rev/a38e295dbf54248dc1ca1e771e5e7289a5912efc [^]

fixes bug 41427: Not possible to define one-to-many mappings from some entities

  When looking for the parent property, now we directly use the entity name defined in the mapping instead of the class simple name. This allows to define one-to-many mappings referencing to entities whose simple class name is different from the entity name itself.

  Besides, this change allows us to simplify the signature of some methods of the SynchronizableBusinessObjectImporter class.

---
M src/org/openbravo/service/external/integration/importer/DalSynchronizableBusinessObjectImporter.java
---
(0113587)
hgbot (developer)
2019-07-23 10:48

Repository: erp/pmods/org.openbravo.service.external.integration.tests
Changeset: b72b168a771223e7f3e88a6c41064635eef4ceda
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Jul 23 10:48:50 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration.tests/rev/b72b168a771223e7f3e88a6c41064635eef4ceda [^]

related to bug 41427: add test case

---
M src-db/database/sourcedata/OBEI_ENTITY_MAPPING.xml
M src-db/database/sourcedata/OBEI_PROP_MAP_INSTANCE.xml
M src-test/org/openbravo/service/external/integration/test/ExternalIntegrationTestSuite.java
M src-test/org/openbravo/service/external/integration/test/TestConstants.java
A src-test/org/openbravo/service/external/integration/test/_import/PriceListImportTest.java
---
(0113687)
AugustoMauch (manager)
2019-07-29 11:07

Code reviewed and verified

- Issue History
Date Modified Username Field Change
2019-07-23 10:04 caristu New Issue
2019-07-23 10:04 caristu Assigned To => platform
2019-07-23 10:04 caristu Assigned To platform => caristu
2019-07-23 10:05 caristu File Added: test_41427.diff
2019-07-23 10:29 caristu File Deleted: test_41427.diff
2019-07-23 10:30 caristu File Added: test_41427.diff
2019-07-23 10:45 hgbot Checkin
2019-07-23 10:45 hgbot Note Added: 0113586
2019-07-23 10:45 hgbot Status new => resolved
2019-07-23 10:45 hgbot Resolution open => fixed
2019-07-23 10:45 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.service.external.integration/rev/a38e295dbf54248dc1ca1e771e5e7289a5912efc [^]
2019-07-23 10:48 hgbot Checkin
2019-07-23 10:48 hgbot Note Added: 0113587
2019-07-23 10:49 caristu Review Assigned To => AugustoMauch
2019-07-23 10:50 caristu Summary Not possible to define one-to-many mappings from some entities => Not possible to define one-to-many mappings for some entities
2019-07-23 11:12 caristu Issue cloned 0041429
2019-07-23 11:12 caristu Steps to Reproduce Updated View Revisions
2019-07-29 11:07 AugustoMauch Note Added: 0113687
2019-07-29 11:07 AugustoMauch Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker