[Dev] [CDM] Device attribute within the Enrolment Class

2015-07-21 Thread Ayyoob Hamza
Hi, In CDM, Device class[1] has an attribute called EnrolmentInfo[2]. What is the reason for having a Device attribute once again within the EnrolmentInfo class ?. [1] https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/w

Re: [Dev] [CDM] Device attribute within the Enrolment Class

2015-07-21 Thread Milan Perera
Hi Ayyoob, The actual use case for this is there are some cases where we should only need to have the enrolment info of a particular device. In that case we should be able to keep the reference of the device along with the enrolment info. That's why we have used device bean again inside of the enr