<commit_before>package com.worth.ifs.project.finance.domain;

import com.worth.ifs.project.domain.Project;
import com.worth.ifs.user.domain.Organisation;

import javax.persistence.*;

@Entity
public class FinanceCheck {
    public static final String FINANCE_CHECK_COSTS_DESCRIPTION = "Finance check costs for partner for a project";

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @ManyToOne
    @JoinColumn(name = "projectId", referencedColumnName = "id")
    private Project project;

    @OneToOne
    @JoinColumn(name = "organisationId", referencedColumnName = "id")
    private Organisation organisation;

    @OneToOne
    @JoinColumn(name = "costGroupId", referencedColumnName = "id")
    private CostGroup costGroup;

    public FinanceCheck(Project project, CostGroup costGroup) {
        this.project = project;
        this.costGroup = costGroup;<commit_msg>Adding caste to cost group from finance<commit_after>package com.worth.ifs.project.finance.domain;

import com.worth.ifs.project.domain.Project;
import com.worth.ifs.user.domain.Organisation;

import javax.persistence.*;

import static javax.persistence.CascadeType.ALL;

@Entity
public class FinanceCheck {
    public static final String FINANCE_CHECK_COSTS_DESCRIPTION = "Finance check costs for partner for a project";

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @ManyToOne
    @JoinColumn(name = "projectId", referencedColumnName = "id")
    private Project project;

    @OneToOne
    @JoinColumn(name = "organisationId", referencedColumnName = "id")
    private Organisation organisation;

    @OneToOne(cascade = ALL)
    @JoinColumn(name = "costGroupId", referencedColumnName = "id")
    private CostGroup costGroup;

    public FinanceCheck(Project project, CostGroup costGroup) {
        this.project = project;
        this.costGroup = costGroup;
{'fraction_non_alphanumeric': 0.09167103195390257, 'fraction_numerical': 0.0, 'mean_word_length': 4.218579234972678, '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': '7253825', 'n_tokens_mistral': 553, 'n_tokens_neox': 532, 'n_words': 137}