All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.shaneking.sql.entity.SKRelIdEntity Maven / Gradle / Ivy

There is a newer version: 0.15.1
Show newest version
package org.shaneking.sql.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.shaneking.skava.lang.String0;

import javax.persistence.Column;

/**
 * Relation Entity
 */
@Accessors(chain = true)
@ToString
public abstract class SKRelIdEntity extends SKIdEntity {
  @Column(length = 1, columnDefinition = "COMMENT 'The invalid status of record {Y:invalid,N:valid(default)}'")
  @Getter
  @Setter
  private String invalid;

  /**
   * @see org.shaneking.skava.util.Date0#DATE_TIME
   */
  @Column(length = 20, columnDefinition = "COMMENT 'The invalid time of record'")
  @Getter
  @Setter
  private String ivdDateTime;

  @Column(length = 40, columnDefinition = "COMMENT 'The invalid operator of record'")
  @Getter
  @Setter
  private String ivdUserId;

  public SKRelIdEntity initInvalid() {
    return this.setInvalid(String0.null2empty2(this.getInvalid(), String0.N));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy