<commit_before>/* License the Apache License, Version 2.0,
 * Author: <NAME>
 */
package org.ujorm.hotels.entity;

import org.ujorm.Key;
import org.ujorm.core.annot.Transient;
import org.ujorm.hotels.entity.enums.TitleEnum;
import org.ujorm.implementation.orm.OrmTableLockable;
import org.ujorm.orm.OrmKeyFactory;
import org.ujorm.orm.annot.Column;
import org.ujorm.orm.annot.Comment;
import org.ujorm.wicket.component.form.FieldProvider;
import static org.ujorm.Validator.Build.*;

/** Common User */
public class Customer extends OrmTableLockable<Customer> {

    /** Unique index name */
    private static final String UNIQUE_LOGIN = "idx_unique_login";

    /** Factory */
    private static final OrmKeyFactory<Customer> f = newFactory(Customer.class);

    /** The Primary Key */
    @Comment("The Primary Key")
    @Column(pk = true)
    public static final Key<Customer, Integer> ID = f.newKey();
    /** Unique login */
    @Comment("Unique login")
    @Column(uniqueIndex=UNIQUE_LOGIN)
    public static final Key<Customer, String> LOGIN = f.newKey(length(MANDATORY, 3, 6));
    /** A form field only where the {@code null} value means: no password chage */
    @Transient
    public static final Key<Customer, String> PASSWORD = f.newKey(FieldProvider.PASSWORD_KEY_NAME, length(NULLABLE, 3, 100));
    /** Password hash */
    @Comment("Password hash")<commit_msg>HOTELS: Customer property validator limits are modifed<commit_after>/* License the Apache License, Version 2.0,
 * Author: <NAME>
 */
package org.ujorm.hotels.entity;

import org.ujorm.Key;
import org.ujorm.core.annot.Transient;
import org.ujorm.hotels.entity.enums.TitleEnum;
import org.ujorm.implementation.orm.OrmTableLockable;
import org.ujorm.orm.OrmKeyFactory;
import org.ujorm.orm.annot.Column;
import org.ujorm.orm.annot.Comment;
import org.ujorm.wicket.component.form.FieldProvider;
import static org.ujorm.Validator.Build.*;

/** Common User */
public class Customer extends OrmTableLockable<Customer> {

    /** Unique index name */
    private static final String UNIQUE_LOGIN = "idx_unique_login";

    /** Factory */
    private static final OrmKeyFactory<Customer> f = newFactory(Customer.class);

    /** The Primary Key */
    @Comment("The Primary Key")
    @Column(pk = true)
    public static final Key<Customer, Integer> ID = f.newKey();
    /** Unique login */
    @Comment("Unique login")
    @Column(uniqueIndex=UNIQUE_LOGIN)
    public static final Key<Customer, String> LOGIN = f.newKey(length(MANDATORY, 4, 30));
    /** A form field only where the {@code null} value means: no password chage */
    @Transient
    public static final Key<Customer, String> PASSWORD = f.newKey(FieldProvider.PASSWORD_KEY_NAME, length(NULLABLE, 4, 100));
    /** Password hash */
    @Comment("Password hash")
{'fraction_non_alphanumeric': 0.12491052254831782, 'fraction_numerical': 0.006084466714387974, 'mean_word_length': 4.166358595194085, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3402853', 'n_tokens_mistral': 887, 'n_tokens_neox': 857, 'n_words': 225}