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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0006847
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 00. Application dictionarymajoralways2009-01-12 14:052009-04-21 12:36
ReportericiordiaView Statuspublic 
Assigned Tomtaal 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision11937
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava versionany
OS VersionanyDatabase versionanyAnt versionany
Product VersionpiSCM revision11643 
Merge Request Status
Review Assigned To
OBNetwork customerNo
Web browser
ModulesCore
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0006847: ad_table.classname should be mandatory and a validation should be added to avoid clashes in ad_table.name

DescriptionThere are around 50 tables with classname set to null. Additionally, a validation should be added to avoid clashes in ad_table.name from different modules (force to use db_prefix?)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
has duplicate defect 0006842 closedmtaal Entity Names of new tables in a module should be prefixed 

-  Notes
(0012111)
mtaal (viewer)
2009-01-12 14:23

Hi Ismael,
Regarding classname, I think for classname we don't need to add dbprefix. The combination of classname and package should be unique (the ad_package.javaname is already unique). So this would be an additional constraint next to classname not null.

For the entityname (used in xml and such) there is no class/package name so there we can use the dbprefix.

Let me know what you think.

gr. Martin
(0012130)
iciordia (viewer)
2009-01-12 20:20

Hi Martin,

if you review the bug description I did I was reporting two bugs:
-classname should be mandatory
-name (entityName) should be unique across modules

So we are in synch ;-)

Additionally it is needed to review current values for EntityNames (name) because there is no rule to define this name (some times DB_Prefix is used, some times not, etc.)

Ismael
(0012132)
mtaal (viewer)
2009-01-12 20:42

Some additional points:
- check current ad_table.name for incorrect values
- write to developers list about correct use of name, tablename and classname fields and relation to ad_package
(0012148)
mtaal (viewer)
2009-01-13 15:31

The following changes have been made:
- checked and corrected ad_table.name
- set ad_table.classname for the ones which were null
- updated referencedata
- various changes in the code to follow the changes in the generated entities

Changes have been tested by a successfull ant install.source

To be done:
- add trigger to check for prefix of module in ad_table.name
- further update of package of ad_table records on the basis of reaction of Ismael
(0012161)
mtaal (viewer)
2009-01-13 21:46

Done:
- The trigger was already defined, so no extra validation required.
- An email has been sent to the developers list about the use of AD_Table.classname, name and ad_package_id

Open topic:
- Waiting for reaction of Ismael on packaging of several tables

Work on this issue continues after this info has been received.
(0012221)
svnbot (viewer)
2009-01-15 16:04

Repository: openbravo
Revision: 11937
Author: mtaal
Date: 2009-01-15 16:03:45 +0100 (Thu, 15 Jan 2009)

Fixes issue 6847, assigned several tables from core package to more meaningfull package, removed core package, removed T_Report table, changed names of several tables

---
U trunk/referencedata/sampledata/Accounting_Test.xml
U trunk/referencedata/sampledata/BigBazaar.xml
U trunk/src-db/database/sourcedata/AD_FIELD.xml
U trunk/src-db/database/sourcedata/AD_PACKAGE.xml
U trunk/src-db/database/sourcedata/AD_TABLE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=11937&sc=1 [^]

- Issue History
Date Modified Username Field Change
2009-01-12 14:05 iciordia New Issue
2009-01-12 14:05 iciordia Assigned To => mtaal
2009-01-12 14:05 iciordia sf_bug_id 0 => 2501307
2009-01-12 14:05 iciordia OBNetwork customer => No
2009-01-12 14:05 iciordia Regression testing => No
2009-01-12 14:23 mtaal Note Added: 0012111
2009-01-12 20:20 iciordia Note Added: 0012130
2009-01-12 20:42 mtaal Note Added: 0012132
2009-01-13 15:31 mtaal Note Added: 0012148
2009-01-13 21:46 mtaal Note Added: 0012161
2009-01-13 21:58 mtaal Relationship added has duplicate 0006842
2009-01-15 16:04 svnbot Checkin
2009-01-15 16:04 svnbot Note Added: 0012221
2009-01-15 16:04 svnbot Status new => resolved
2009-01-15 16:04 svnbot Resolution open => fixed
2009-01-15 16:04 svnbot svn_revision => 11937
2009-04-21 12:36 psarobe Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker