← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18733: minor, add oneToMany to Property class

 

------------------------------------------------------------
revno: 18733
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-03-30 09:47:57 +0700
message:
  minor, add oneToMany to Property class
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/Property.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/schema/Property.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/Property.java	2015-03-23 07:20:14 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/schema/Property.java	2015-03-30 02:47:57 +0000
@@ -198,11 +198,16 @@
     private String cascade;
 
     /**
-     * Is collection many-to-many.
+     * Is property many-to-many.
      */
     private boolean manyToMany;
 
     /**
+     * Is property one-to-many.
+     */
+    private boolean oneToMany;
+
+    /**
      * The hibernate role of the owning side.
      */
     private String owningRole;
@@ -570,6 +575,18 @@
 
     @JsonProperty
     @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
+    public boolean isOneToMany()
+    {
+        return oneToMany;
+    }
+
+    public void setOneToMany( boolean oneToMany )
+    {
+        this.oneToMany = oneToMany;
+    }
+
+    @JsonProperty
+    @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
     public String getOwningRole()
     {
         return owningRole;