<commit_before><?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >

<hibernate-mapping package="org.openmrs.api.db">

	<class name="LoginCredential" table="users">
		<id name="userId" type="int" column="user_id">
			<generator class="native" />
		</id>
		
		<property name="uuid" type="java.lang.String" formula="(select p.uuid from person p where p.person_id = user_id)" />
		<property name="hashedPassword" type="java.lang.String" column="password" length="50" />
		<property name="salt" type="java.lang.String" column="salt" length="50" />
		<property name="secretQuestion" type="java.lang.String" column="secret_question" length="255" />
		<property name="secretAnswer" type="java.lang.String" column="secret_answer" length="255" />
		
		<many-to-one name="changedBy" class="org.openmrs.User" column="changed_by" />
		<property name="dateChanged" type="java.util.Date" column="date_changed" length="19" />
		
	</class>
	
</hibernate-mapping>
	<commit_msg>Fixing LoginCredential.uuid still mapped to Person table in hibernate - #2363<commit_after><?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >

<hibernate-mapping package="org.openmrs.api.db">

	<class name="LoginCredential" table="users">
		<id name="userId" type="int" column="user_id">
			<generator class="native" />
		</id>
		
		<property name="uuid" type="java.lang.String" column="uuid" length="38" unique="true"/>
		<property name="hashedPassword" type="java.lang.String" column="password" length="50" />
		<property name="salt" type="java.lang.String" column="salt" length="50" />
		<property name="secretQuestion" type="java.lang.String" column="secret_question" length="255" />
		<property name="secretAnswer" type="java.lang.String" column="secret_answer" length="255" />
		
		<many-to-one name="changedBy" class="org.openmrs.User" column="changed_by" />
		<property name="dateChanged" type="java.util.Date" column="date_changed" length="19" />
		
	</class>
	
</hibernate-mapping>
	
{'fraction_non_alphanumeric': 0.18405466970387244, 'fraction_numerical': 0.019134396355353075, 'mean_word_length': 5.3468208092485545, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 2, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '535728', 'n_tokens_mistral': 811, 'n_tokens_neox': 707, 'n_words': 132}