android - ORMLite trying to load field without @DatabaseField annotation -


i have 2 classes following:

@getter @setter @noargsconstructor @databasetable(tablename = "condicao_ambiental") public class condicaoambiental {     @expose     @databasefield(id = true, columnname = "id")     private uuid id;     @expose     @databasefield(datatype = datatype.date_long)     private date datacriacao;     @expose     @databasefield(columnname = "idusuario", foreign = true, foreignautorefresh = true)     private usuario usuario;     ... }    

and

@getter @setter @noargsconstructor @databasetable(tablename = "usuario") public class usuario {     @expose     @databasefield(id = true, columnname = "id")     private uuid id;     @databasefield(foreign = true, columnname = "idcliente")     private cliente cliente;     @databasefield     private string nome;     @databasefield     private string login;     private string senha;     ... } 

the annotations used in these classes lombok, retrofit2 , ormlite5

when make query list condicaoambiental error presented:

java.sql.sqlexception: unknown field 'senha' android sqlite cursor, not in:[id, idcliente, nome, tiposindicato, datacadastro, diasteste] 

but column senha not annotated field.

when make query list usuario, runs ok , list loaded. if remove foreignautorefresh=true field usuario, no error occurs.

could tell me missing?

as explained gray, solution recompile project ormlite can re-generate config file.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -