<commit_before>package org.openregistry.core.domain.jpa;

import org.openregistry.core.domain.Region;
import org.openregistry.core.domain.Country;
import org.openregistry.core.domain.internal.Entity;

import javax.persistence.*;
import java.util.List;

/**
 * @author <NAME>
 * @version $Revision$ $Date$
 * @since 1.0.0
 *
 */
@javax.persistence.Entity(name="region")
@Table(name="ctd_regions")
public class JpaRegionImpl extends Entity implements Region {

    @Id
    @SequenceGenerator(name="ctd_reqion_seq",sequenceName="ctd_reqion_seq",initialValue=1,allocationSize=50)
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "ctd_reqion_seq")
    private Long id;

    @Column(name="name",nullable = false,length=100)
    private String name;

    @Column(name="code",nullable=false,length=3)
    private String code;

    @ManyToOne
    @JoinColumn(name="country_id", nullable=false)
    private JpaCountryImpl country;

    @OneToMany(mappedBy = "region", fetch = FetchType.LAZY)
    private List<JpaAddressImpl> addresses;

    protected Long getId() {
        return this.id;<commit_msg>NOJIRA fixed sequence name<commit_after>package org.openregistry.core.domain.jpa;

import org.openregistry.core.domain.Region;
import org.openregistry.core.domain.Country;
import org.openregistry.core.domain.internal.Entity;

import javax.persistence.*;
import java.util.List;

/**
 * @author <NAME>
 * @version $Revision$ $Date$
 * @since 1.0.0
 *
 */
@javax.persistence.Entity(name="region")
@Table(name="ctd_regions")
public class JpaRegionImpl extends Entity implements Region {

    @Id
    @SequenceGenerator(name="ctd_region_seq",sequenceName="ctd_region_seq",initialValue=1,allocationSize=50)
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "ctd_region_seq")
    private Long id;

    @Column(name="name",nullable = false,length=100)
    private String name;

    @Column(name="code",nullable=false,length=3)
    private String code;

    @ManyToOne
    @JoinColumn(name="country_id", nullable=false)
    private JpaCountryImpl country;

    @OneToMany(mappedBy = "region", fetch = FetchType.LAZY)
    private List<JpaAddressImpl> addresses;

    protected Long getId() {
        return this.id;
{'fraction_non_alphanumeric': 0.1258426966292135, 'fraction_numerical': 0.008988764044943821, 'mean_word_length': 4.983870967741935, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3233941', 'n_tokens_mistral': 724, 'n_tokens_neox': 710, 'n_words': 130}