Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025855Openbravo ERPA. Platformpublic2014-02-27 10:412014-03-11 17:04
egoitz 
shankarb 
urgentmajoralways
closedfixed 
5
 
3.0PR14Q23.0PR14Q2 
alostale
Core
No
0025855: Problem on Building runtime model when the tablename starts with pg
When createing new tables, if the table starts with 'pg' the taks Building runtime model (executed when starting tomcat or generate.entities) shows warnings as following:

     [java] 9787 [main] WARN org.openbravo.base.model.ModelProvider - Column PGtablename.column mandatory setting not found in the database metadata. A cause can be that the column does not exist in the database schema
-Create a new table with name pgtest_name
-Add teh mandatory column and a name
-Define the table on the application dictionary.
-Compile

* YOu get errors as following:

     [java] 9787 [main] WARN org.openbravo.base.model.ModelProvider - Column pgtest_name.id mandatory setting not found in the database metadata. A cause can be that the column does not exist in the database schema
     [java] 9787 [main] WARN org.openbravo.base.model.ModelProvider - Column pgtest_name.client mandatory setting not found in the database metadata. A cause can be that the column does not exist in the database schema
No tags attached.
diff solve25855.diff (1,797) 2014-02-27 10:42
https://issues.openbravo.com/file_download.php?file_id=6723&type=bug
Issue History
2014-02-27 10:41egoitzNew Issue
2014-02-27 10:41egoitzAssigned To => AugustoMauch
2014-02-27 10:41egoitzModules => Core
2014-02-27 10:41egoitzResolution time => 1363734000
2014-02-27 10:41egoitzTriggers an Emergency Pack => No
2014-02-27 10:42egoitzFile Added: solve25855.diff
2014-02-27 10:42egoitzNote Added: 0064644
2014-03-05 13:03alostaleTarget Version => PR14Q2
2014-03-10 06:13shankarbAssigned ToAugustoMauch => shankarb
2014-03-10 10:16shankarbReview Assigned To => alostale
2014-03-10 10:16shankarbIssue Monitored: alostale
2014-03-10 10:18hgbotCheckin
2014-03-10 10:18hgbotNote Added: 0064976
2014-03-10 10:19hgbotStatusnew => resolved
2014-03-10 10:19hgbotResolutionopen => fixed
2014-03-10 10:19hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/396b7943dbbeda1b4812e7496e2429cf169cc54d [^]
2014-03-10 22:58hudsonbotCheckin
2014-03-10 22:58hudsonbotNote Added: 0065003
2014-03-11 07:56alostaleNote Added: 0065013
2014-03-11 07:57alostaleStatusresolved => closed
2014-03-11 07:57alostaleFixed in Version => PR14Q2
2014-03-11 08:57hgbotCheckin
2014-03-11 08:57hgbotNote Added: 0065014
2014-03-11 17:04hudsonbotCheckin
2014-03-11 17:04hudsonbotNote Added: 0065054

Notes
(0064644)
egoitz   
2014-02-27 10:42   
possible solution attached
(0064976)
hgbot   
2014-03-10 10:18   
Repository: erp/devel/pi
Changeset: 396b7943dbbeda1b4812e7496e2429cf169cc54d
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Mon Mar 10 14:45:53 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/396b7943dbbeda1b4812e7496e2429cf169cc54d [^]

Fixes Issue 0025855: Problem on Building runtime model when the tablename starts with pg

Remove where clause that was excluding tables starting with pg and sql.

---
M src/org/openbravo/base/session/SessionFactoryController.java
---
(0065003)
hudsonbot   
2014-03-10 22:58   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b362f74ef31a [^]
Maturity status: Test
(0065013)
alostale   
2014-03-11 07:56   
Code reviewed and tested: now when building runtime model and checking for mandatory columns no restriction is done base on table name. This makes the map of tables to check mandatories a little bit bigger just while loading. No performance side effect was found.
(0065014)
hgbot   
2014-03-11 08:57   
Repository: erp/devel/pi
Changeset: 6a7661e4b04c1e0f68e8389d6033ba53f1dd35a8
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Tue Mar 11 13:26:49 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/6a7661e4b04c1e0f68e8389d6033ba53f1dd35a8 [^]

Related to Issue 25855 : Updated copyright year

---
M src/org/openbravo/base/session/SessionFactoryController.java
---
(0065054)
hudsonbot   
2014-03-11 17:04   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0d35a09c7eb8 [^]
Maturity status: Test