Hey,
Sorry for the late response, just stumbling over this. Actually you should use int/Integer to map Int32. Short would be to small so you are at risk of value loss. Your second error report seems weird:
Code:
@Column(name = "app_status")
private Integer appStatus;
It says: "Caused by: java.lang.IllegalArgumentException: Can not set java.lang.Long field vn.eway.adsinapp.model.App.appStatus to java.lang.Integer"
The field is of type Integer, whereas the error message says it's Long. Could you double check whether that was not a mix-up from different experiments or so?
If that's what you actually get with the field being of type Integer, I'd consider it a bug in OGM. Could you file a JIRA issue and attach a test case, please?
Thanks,
--Gunnar