<commit_before>package com.imcode.imcms.persistence.entity;

import com.imcode.imcms.mapping.jpa.doc.content.VersionedI18nContent;
import com.imcode.imcms.mapping.jpa.doc.content.textdoc.ImageCropRegion;
import com.imcode.imcms.mapping.jpa.doc.content.textdoc.LoopEntryRef;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "imcms_text_doc_images")
@Getter
@Setter
public class Image extends VersionedI18nContent {

    @Column(name = "`index`")
    private Integer index;

    private int width;

    private int height;

    private int border;

    private String align = "";

    @Column(name = "alt_text")
    private String alternateText = "";

    @Column(name = "low_scr")
    private String lowResolutionUrl = "";

    @Column(name = "v_space")
    private int verticalSpace;

    @Column(name = "h_space")
    private int horizontalSpace;

    private String target = "";

    @Column(name = "linkurl")
    private String linkUrl = "";

    @Column(name = "imgurl")
    private String url = "";

    @Column(name = "image_name")
    private String name = "";

    private Integer type;

    @Column(name = "format", nullable = false, columnDefinition = "smallint")
    private int format;

    private ImageCropRegion cropRegion = new ImageCropRegion();

    @Column(name = "rotate_angle", nullable = false, columnDefinition = "smallint")
    private int rotateAngle;

    @Column(name = "gen_file")
    private String generatedFilename;

    private LoopEntryRef loopEntryRef;

    private int resize;

    @Column(name = "archive_image_id")
    private Long archiveImageId;
<commit_msg>IMCMS-258 - Upgrade image functionality to work with new image editor API on client side: - Not null column now has corresponding non-null java type.<commit_after>package com.imcode.imcms.persistence.entity;

import com.imcode.imcms.mapping.jpa.doc.content.VersionedI18nContent;
import com.imcode.imcms.mapping.jpa.doc.content.textdoc.ImageCropRegion;
import com.imcode.imcms.mapping.jpa.doc.content.textdoc.LoopEntryRef;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "imcms_text_doc_images")
@Getter
@Setter
public class Image extends VersionedI18nContent {

    @Column(name = "`index`")
    private Integer index;

    private int width;

    private int height;

    private int border;

    private String align = "";

    @Column(name = "alt_text")
    private String alternateText = "";

    @Column(name = "low_scr")
    private String lowResolutionUrl = "";

    @Column(name = "v_space")
    private int verticalSpace;

    @Column(name = "h_space")
    private int horizontalSpace;

    private String target = "";

    @Column(name = "linkurl")
    private String linkUrl = "";

    @Column(name = "imgurl")
    private String url = "";

    @Column(name = "image_name")
    private String name = "";

    private int type;

    @Column(name = "format", nullable = false, columnDefinition = "smallint")
    private int format;

    private ImageCropRegion cropRegion = new ImageCropRegion();

    @Column(name = "rotate_angle", nullable = false, columnDefinition = "smallint")
    private int rotateAngle;

    @Column(name = "gen_file")
    private String generatedFilename;

    private LoopEntryRef loopEntryRef;

    private int resize;

    @Column(name = "archive_image_id")
    private Long archiveImageId;

{'fraction_non_alphanumeric': 0.10730337078651686, 'fraction_numerical': 0.003089887640449438, 'mean_word_length': 3.8914835164835164, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1461184', 'n_tokens_mistral': 1111, 'n_tokens_neox': 1051, 'n_words': 272}