WebHelp.java
/*
* Copyright 2026 Global Crop Diversity Trust
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root folder or http://www.apache.org/licenses/LICENSE-2.0
*/
package org.gringlobal.model;
import javax.persistence.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
/**
* Auto-generated by:
* org.apache.openjpa.jdbc.meta.ReverseMappingTool$AnnotatedCodeGenerator
*/
@Entity
@Table(name = "web_help")
@JsonIdentityInfo(scope = WebHelp.class, generator = ObjectIdGenerators.PropertyGenerator.class, property = "id")
@Getter
@Setter
@NoArgsConstructor
public class WebHelp extends CooperatorOwnedModel {
private static final long serialVersionUID = 1840039323993837505L;
@Basic
@Column(length = 50)
private String heading;
@Basic
@Column(name = "help_text_html")
@Lob
private String helpTextHtml;
@Id
@JsonProperty
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "web_help_id", columnDefinition = "int")
private Long id;
@ManyToOne(fetch = FetchType.LAZY, cascade = {})
@JoinColumn(name = "sys_lang_id", nullable = false)
private SysLang sysLang;
@Basic
@Column(length = 50)
private String title;
@Basic
@Column(name = "virtual_path")
private String virtualPath;
@Basic
@Column(name = "web_help_tag", length = 100)
private String webHelpTag;
public WebHelp(final Long id) {
this.id = id;
}
@Override
public boolean canEqual(Object other) {
return other instanceof WebHelp;
}
}