<commit_before>package com.drumonii.loltrollbuild.model;

import com.drumonii.loltrollbuild.model.image.ChampionSpellImage;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import org.springframework.data.rest.core.annotation.RestResource;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Spells of a {@link Champion} which maps a {@link ManyToOne} relationship.
 */
@Entity
@Table(name = "CHAMPION_SPELL")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(exclude = "champion")
@ToString(exclude = "champion")
public class ChampionSpell implements Serializable {

	@Id
	@Column(name = "KEY", unique = true, nullable = false)
	@JsonProperty("key")
	@Getter @Setter private String key;

	@Column(name = "NAME", nullable = false)
	@JsonProperty("name")
	@Getter @Setter private String name;

	@Column(name = "DESCRIPTION", nullable = false)
	@JsonProperty("description")
	@Getter @Setter private String description;

	@Column(name = "TOOLTIP", nullable = false)
	@JsonProperty("tooltip")
	@Getter @Setter private String tooltip;

	@OneToOne(cascade = CascadeType.ALL, mappedBy = "spell")
	@JsonManagedReference<commit_msg>Set Champion tooltip to empty String to mitigate when it's null from Riot<commit_after>package com.drumonii.loltrollbuild.model;

import com.drumonii.loltrollbuild.model.image.ChampionSpellImage;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import org.springframework.data.rest.core.annotation.RestResource;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Spells of a {@link Champion} which maps a {@link ManyToOne} relationship.
 */
@Entity
@Table(name = "CHAMPION_SPELL")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(exclude = "champion")
@ToString(exclude = "champion")
public class ChampionSpell implements Serializable {

	@Id
	@Column(name = "KEY", unique = true, nullable = false)
	@JsonProperty("key")
	@Getter @Setter private String key;

	@Column(name = "NAME", nullable = false)
	@JsonProperty("name")
	@Getter @Setter private String name;

	@Column(name = "DESCRIPTION", nullable = false)
	@JsonProperty("description")
	@Getter @Setter private String description;

	@Column(name = "TOOLTIP", nullable = false)
	@JsonProperty("tooltip")
	@Getter @Setter private String tooltip = "";

	@OneToOne(cascade = CascadeType.ALL, mappedBy = "spell")
	@JsonManagedReference
{'fraction_non_alphanumeric': 0.12040893600908746, 'fraction_numerical': 0.0, 'mean_word_length': 6.527065527065527, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '828732', 'n_tokens_mistral': 829, 'n_tokens_neox': 806, 'n_words': 193}