You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to show the stored values in the table, but unfortunately i am facing this exception.
java.lang.IllegalAccessException: Class java.lang.Class<com.orm.SugarRecord> cannot access method void com.tranquil.bioattendance.models.PRIME_APPUSER.<init>() of class java.lang.Class<com.tranquil.bioattendance.models.PRIME_APPUSER>
the line where it is occurring is
//Here the record is getting stored successfully
PRIME_APPUSER loginUserModel = new PRIME_APPUSER ();
//setter methods
loginUserModel.save();
List<PRIME_APPUSER> loginUserList = PRIME_APPUSER.listAll(PRIME_APPUSER.class);
Here is my class :
public class PRIME_APPUSER extends SugarRecord {
PRIME_APPUSER() {
}
@SerializedName("FormId")
@Expose
private Integer FormId;
@SerializedName("Role")
@Expose
private String Role;
@SerializedName("FormDate")
@Expose
private String FormDate;
@SerializedName("UserName")
@Expose
private String UserName;
@SerializedName("PassWord")
@Expose
private String PassWord;
@SerializedName("SecurityQue")
@Expose
private String SecurityQue;
@SerializedName("Answer")
@Expose
private String Answer;
public Integer getFormId() {
return FormId;
}
public void setFormId(Integer formId) {
FormId = formId;
}
public String getRole() {
return Role;
}
public void setRole(String role) {
Role = role;
}
public String getFormDate() {
return FormDate;
}
public void setFormDate(String formDate) {
FormDate = formDate;
}
public String getUserName() {
return UserName;
}
public void setUserName(String userName) {
UserName = userName;
}
public String getPassWord() {
return PassWord;
}
public void setPassWord(String passWord) {
PassWord = passWord;
}
public String getSecurityQue() {
return SecurityQue;
}
public void setSecurityQue(String securityQue) {
SecurityQue = securityQue;
}
public String getAnswer() {
return Answer;
}
public void setAnswer(String answer) {
Answer = answer;
}
}
I am initiating the SugarContext in application class too. My other tables doesnt have any issue only this one is giving error.
any suggestion,
The text was updated successfully, but these errors were encountered:
I am trying to show the stored values in the table, but unfortunately i am facing this exception.
java.lang.IllegalAccessException: Class java.lang.Class<com.orm.SugarRecord> cannot access method void com.tranquil.bioattendance.models.PRIME_APPUSER.<init>() of class java.lang.Class<com.tranquil.bioattendance.models.PRIME_APPUSER>
the line where it is occurring is
Here is my class :
I am initiating the SugarContext in application class too. My other tables doesnt have any issue only this one is giving error.
any suggestion,
The text was updated successfully, but these errors were encountered: