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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007708
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2009-02-20 10:452009-04-22 00:00
ReportermarvintmView Statuspublic 
Assigned Tomtaal 
PrioritynormalResolutionfixedFixed in Version2.50beta
StatusclosedFix in branchFixed in SCM revision13547
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0007708: generate.entities fails if an ad_column has default_value 00:00:00

Descriptionant generate.entities fails if an ad_column has default_value 00:00:00

Basically, it generates java classes that have incorrect statements, and when it tries to compile them, the following error appears:

 [javac] /mnt2/svn/montblanc/branches/2.50/Oracle/OpenbravoERP/AppsOpenbravo/src-gen/org/openbravo/model/materialmgmt/transaction/ProductionTransaction.java:70: ')' expected
432 [javac] »···»···»···setDefaultValue(PROPERTY_ENDINGTIME, 00:00:00);
433 [javac] »···»···»··· ^
434 [javac] /mnt2/svn/montblanc/branches/2.50/Oracle/OpenbravoERP/AppsOpenbravo/src-gen/org/openbravo/model/materialmgmt/transaction/ProductionTransaction.java:70: not a statement
435 [javac] »···»···»···setDefaultValue(PROPERTY_ENDINGTIME, 00:00:00);
[17:37:10] … 436 [javac] »···»···»··· ^
437 [javac] /mnt2/svn/montblanc/branches/2.50/Oracle/OpenbravoERP/AppsOpenbravo/src-gen/org/openbravo/model/materialmgmt/transaction/ProductionTransaction.java:70: ';' expected
438 [javac] »···»···»···setDefaultValue(PROPERTY_ENDINGTIME, 00:00:00);
439 [javac] »···»···»··· ^
440 [javac] /mnt2/svn/montblanc/branches/2.50/Oracle/OpenbravoERP/AppsOpenbravo/src-gen/org/openbravo/model/materialmgmt/transaction/ProductionTransaction.java:71: ')' expected
441 [javac] »···»···»···setDefaultValue(PROPERTY_STARTINGTIME, 00:00:00);
442 [javac] »···»···»··· ^
443 [javac] /mnt2/svn/montblanc/branches/2.50/Oracle/OpenbravoERP/AppsOpenbravo/src-gen/org/openbravo/model/materialmgmt/transaction/ProductionTransaction.java:71: not a statement
444 [javac] »···»···»···setDefaultValue(PROPERTY_STARTINGTIME, 00:00:00);
445 [javac] »···»···»··· ^
446 [javac] /mnt2/svn/montblanc/branches/2.50/Oracle/OpenbravoERP/AppsOpenbravo/src-gen/org/openbravo/model/materialmgmt/transaction/ProductionTransaction.java:71: ';' expected
447 [javac] »···»···»···setDefaultValue(PROPERTY_STARTINGTIME, 00:00:00);
448 [javac] »···»···»··· ^
449 [javac] 6 errors
450
451 BUILD FAILED


Apparently, 00:00:00 is supposed to be a correct value for the default_value column. If it's not, however, this bug doesn't make sense and it should rejected. However, if it actually is a correct value, then it should be fixed because customers currently have values like this in their databases.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0013855)
mtaal (manager)
2009-02-20 16:40

Hi Antonio,
Is the endingtime/startingtime here a time (no date) or a timestamp (which also has a date)?

gr. Martin
(0013965)
svnbot (reporter)
2009-02-23 18:03

Repository: openbravo
Revision: 13547
Author: mtaal
Date: 2009-02-23 18:03:35 +0100 (Mon, 23 Feb 2009)

Fixes issue 7708, generate.entities fails if an ad_column has default_value 00:00:00, default values other than sysdate are ignored for now

---
U trunk/src/org/openbravo/base/model/Property.java
---

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

- Issue History
Date Modified Username Field Change
2009-02-20 10:45 marvintm New Issue
2009-02-20 10:45 marvintm Assigned To => mtaal
2009-02-20 10:45 marvintm Regression testing => No
2009-02-20 16:40 mtaal Note Added: 0013855
2009-02-23 18:03 svnbot Checkin
2009-02-23 18:03 svnbot Note Added: 0013965
2009-02-23 18:03 svnbot Status new => resolved
2009-02-23 18:03 svnbot Resolution open => fixed
2009-02-23 18:03 svnbot svn_revision => 13547
2009-04-21 10:54 psarobe Status resolved => closed
2009-04-22 00:00 anonymous sf_bug_id 0 => 2777978


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker