boolean variable starting with 'is'

I am writing a new android app and I have two variables in my pojo ‘Listener’ with two boolean variables as isAdmin, isLoggedIn. The same name are in my BackendLessdatabase too. When i do save on the database, it creates 2 new column ‘admin’, ‘loggedIn’. Is there any restriction on variable names not to start with ‘is’ ? This does not happen on iOS

What does your pojo class look like?

Below is the code snippet which had issue… currently i have changed the variable name to ‘admin’ and ‘loggedIn’ to make it work.

boolean isAdmin;
boolean isLoggedIn;
Date lastLoggedIn;
String clipId;
Date dateListened;
public boolean isAdmin() {
return isAdmin;
}
public void setAdmin(boolean isAdmin) {
this.isAdmin = isAdmin;
}
public boolean isLoggedIn() {
return isLoggedIn;
}

Thanks. We follow the standard JavaBean convention for property names. If a getter started with “is”, then the name of the property follows that prefix. For example for “isXXX”, the property name is “XXX”. Likewise if you have it as “getXXX”, then the property name is “XXX”.

There are more details here:
http://docstore.mik.ua/orelly/java-ent/jnut/ch06_02.htm

Thanks Mark. I appreciate your time and reply .