Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Abandoned
-
0.8-incubating
-
None
-
None
-
None
Description
A type is created with the below info. An entity is created with respective attributes including the Long value for timestamp. But when that stored entity is retrieved, it returns a Referenceable with timestamp attribute containing scala.math.BigInt type instead of java.lang.Long type
TypesUtil.createClassTypeDef(
DeviceInfo.NAME_SPACE, null,
TypesUtil.createUniqueRequiredAttrDef(DeviceInfo.NAME, DataTypes.STRING_TYPE),
TypesUtil.createUniqueRequiredAttrDef(DeviceInfo.XID, DataTypes.STRING_TYPE),
attrDef(DeviceInfo.TIMESTAMP, DataTypes.LONG_TYPE),
attrDef(DeviceInfo.VERSION, DataTypes.STRING_TYPE)
);
You can look at the test code here