← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14987: set autoFields in constructors

 

------------------------------------------------------------
revno: 14987
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-04-25 17:10:16 +0545
message:
  set autoFields in constructors
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/chart/Chart.java
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRule.java
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRuleGroup.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/chart/Chart.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/chart/Chart.java	2014-04-21 16:49:18 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/chart/Chart.java	2014-04-25 11:25:16 +0000
@@ -145,10 +145,12 @@
 
     public Chart()
     {
+        setAutoFields();
     }
 
     public Chart( String name )
     {
+        this();
         this.name = name;
     }
 

=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRule.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRule.java	2014-03-28 01:51:34 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRule.java	2014-04-25 11:25:16 +0000
@@ -159,11 +159,13 @@
 
     public ValidationRule()
     {
+        setAutoFields();
     }
 
     public ValidationRule( String name, String description, String type,
         Operator operator, Expression leftSide, Expression rightSide )
     {
+        this();
         this.name = name;
         this.description = description;
         this.type = type;

=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRuleGroup.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRuleGroup.java	2014-04-25 08:33:22 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/validation/ValidationRuleGroup.java	2014-04-25 11:25:16 +0000
@@ -73,10 +73,12 @@
 
     public ValidationRuleGroup()
     {
+        setAutoFields();
     }
 
     public ValidationRuleGroup( String name, String description, Set<ValidationRule> members )
     {
+        this();
         this.name = name;
         this.description = description;
         this.members = members;