<commit_before>package org.kurron.example.jpa.persistence

import groovy.transform.Canonical
import javax.persistence.Entity
import org.hibernate.annotations.Immutable as HibernateImmutable

/**
 * This is an immutable structure that is only read from the database.
 */
@Canonical
@Entity
@HibernateImmutable
class ReferenceData {

    String name
}<commit_msg>Added subselect support.<commit_after>package org.kurron.example.jpa.persistence

import groovy.transform.Canonical
import javax.persistence.Entity
import org.hibernate.annotations.Immutable as HibernateImmutable
import org.hibernate.annotations.Subselect
import org.hibernate.annotations.Synchronize

/**
 * This is an immutable structure that is only read from the database.  The data is filled using a sub-select of a
 * larger table.  Our database admin won't let us create a view!
 */
@Canonical
@Entity
@HibernateImmutable
@Subselect( value = 'select i.ID from ITEM' )
@Synchronize( ['Item', 'Bid'] )
class ReferenceData {

    String name
}
{'fraction_non_alphanumeric': 0.08035714285714286, 'fraction_numerical': 0.0, 'mean_word_length': 5.115151515151515, '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': '5837330', 'n_tokens_mistral': 299, 'n_tokens_neox': 281, 'n_words': 93}