{%- if params.package.size > 0 -%} package {{ params.package }}; {%- endif %}
/* DO NOT EDIT | Generated by gyro */ {{ empty_line }} {%- if entity.has_json_key_path == true %} import com.google.gson.annotations.SerializedName; {% comment %} *** Empty line *** {% endcomment %} {%- endif %} {%- if entity.has_date_attribute == true %} import java.util.Date; {%- endif %} {%- if entity.has_list_relationship == true %} import java.util.List; {%- endif %} {%- if entity.has_date_attribute == true or entity.has_list_relationship == true %} {{ empty_line }} {%- endif %} {%- if entity.has_list_attributes == true %} import io.realm.RealmList; {%- endif %} import io.realm.RealmObject; {%- if entity.has_ignored == true %} import io.realm.annotations.Ignore; {%- endif %} {%- if entity.has_indexed_attributes == true %} import io.realm.annotations.Index; {%- endif %} {%- if entity.has_primary_key == true %} import io.realm.annotations.PrimaryKey; {%- endif %} {%- if entity.has_required == true %} import io.realm.annotations.Required; {%- endif %}
{% if entity.comment.size > 0 -%} /**
* {{ entity.comment }} */
{% endif %} {%- assign primary_key = entity.identity_attribute -%} public class {{ entity.name }} extends RealmObject {
{%- include 'inc/attributes_enum' %} {%- include 'inc/relationships_enum' %} {% include 'inc/attributes_properties' %} {%- include 'inc/relationships_properties' %} {%- include 'inc/attributes_getter_setter' %} {%- include 'inc/relationships_getter_setter' %} {%- include 'inc/enum_getter_setter' %}
}