Skip to content

@BindDisabled

xcesco edited this page Jan 23, 2017 · 2 revisions

Default behaviour, for a @BindType annotated class is to persist every fields. To exclude a specific field from binding, just use @BindDisabled annotation on field.

This annotation affects bind to XML/JSON/etc, sharepreference and sqlite conversion.

Don't use with allField = true, otherwise an exception will be thrown during compilation.

@BindType
public class Bean {
  public long id;

  @BindDisabled
  public String dummy;

  public String name;
}

In Bean definition, for example, field dummy will be excluded from every persist convertion.

Table of Contents

Query definition

Features

Relations

Multithread supports

Modularization

Annotations for data convertion

Annotations for SQLite ORM

Annotations for shared preferences

Clone this wiki locally