If this is a custom class, use the following code (for example: "AnotherClass" is a custom class)
classAObject.put("column_name", ParseObject.createWithoutData("AnotherClass", "abc123"));
or if it is a Parse class such as User, Installations, etc., use this,
classAObject.put("column_name", ParseObject.createWithoutData(ParseUser.class, "abc123"));
Rajesh hegde
source share