<commit_before><!--
  ~ This is part of the Ktunaxa referral system.
  ~
  ~ Copyright 2011 Ktunaxa Nation Council, http://www.ktunaxa.org/, Canada.
  -->
<beans
		xmlns="http://www.springframework.org/schema/beans"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xmlns:util="http://www.springframework.org/schema/util"
		xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
		>

	<bean name="layerReferral" class="org.geomajas.layer.hibernate.HibernateLayer">
		<property name="layerInfo" ref="referralInfo" />
		<property name="featureModel">
			<bean class="org.geomajas.layer.hibernate.HibernateFeatureModel">
				<property name="sessionFactory" ref="postgisSessionFactory" />
			</bean>
		</property>
		<property name="sessionFactory" ref="postgisSessionFactory" />
		<property name="dateFormat" ref="simpleDateFormat" />
	</bean>

	<bean name="referralInfo" class="org.geomajas.configuration.VectorLayerInfo">
		<property name="layerType" value="GEOMETRY"/>
		<property name="crs">
			<util:constant static-field="org.ktunaxa.referral.server.service.KtunaxaConstant.LAYER_CRS"/>
		</property>
		<property name="maxExtent">
			<bean class="org.geomajas.geometry.Bbox">
				<property name="x">
					<util:constant static-field="org.ktunaxa.referral.server.service.KtunaxaConstant.KTUNAXA_TERRITORY_BUFFER_MIN_X"/>
				</property>
				<property name="y">
					<util:constant static-field="org.ktunaxa.referral.server.service.KtunaxaConstant.KTUNAXA_TERRITORY_BUFFER_MIN_Y"/>
				</property>
				<property name="maxX">
					<util:constant static-field="org.ktunaxa.referral.server.service.KtunaxaConstant.KTUNAXA_TERRITORY_BUFFER_MAX_X"/>
				</property>
				<property name="maxY">
					<util:constant static-field="org.ktunaxa.referral.server.service.KtunaxaConstant.KTUNAXA_TERRITORY_BUFFER_MAX_Y"/>
				</property>
			</bean>
		</property>
		<property name="featureInfo" ref="referralFeatureInfo" />
		<property name="namedStyleInfos">
			<list>
				<ref bean="referralStyleInfo" />
			</list>
		</property>
	</bean>

    <bean class="org.geomajas.configuration.FeatureInfo" name="referralFeatureInfo">
        <property name="dataSourceName" value="org.ktunaxa.referral.server.domain.Referral"/>
        <property name="identifier">
            <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
                <property name="label" value="Id"/>
                <property name="name" value="id"/>
                <property name="type" value="LONG"/><commit_msg>KTU-283 allow empty geometries in referral layer<commit_after><!--
  ~ This is part of the Ktunaxa referral system.
  ~
  ~ Copyright 2011 Ktunaxa Nation Council, http://www.ktunaxa.org/, Canada.
  -->
<beans
		xmlns="http://www.springframework.org/schema/beans"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xmlns:util="http://www.springframework.org/schema/util"
		xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
		>

	<bean name="layerReferral" class="org.geomajas.layer.hibernate.HibernateLayer">
		<property name="layerInfo" ref="referralInfo" />
		<property name="featureModel">
			<bean class="org.geomajas.layer.hibernate.HibernateFeatureModel">
				<property name="sessionFactory" ref="postgisSessionFactory" />
			</bean>
		</property>
		<property name="sessionFactory" ref="postgisSessionFactory" />
		<property name="dateFormat" ref="simpleDateFormat" />
	</bean>

	<bean name="referralInfo" class="org.geomajas.configuration.VectorLayerInfo">
		<property name="layerType" value="GEOMETRY"/>
		<property name="crs">
			<util:constant static-field="org.ktunaxa.referral.server.service.KtunaxaConstant.LAYER_CRS"/>
		</property>
		<property name="allowEmptyGeometries" value="true" />
		<property name="maxExtent">
			<bean class="org.geomajas.geometry.Bbox">
				<property name="x">
					<util:constant static-field="org.ktunaxa.referral.server.service.KtunaxaConstant.KTUNAXA_TERRITORY_BUFFER_MIN_X"/>
				</property>
				<property name="y">
					<util:constant static-field="org.ktunaxa.referral.server.service.KtunaxaConstant.KTUNAXA_TERRITORY_BUFFER_MIN_Y"/>
				</property>
				<property name="maxX">
					<util:constant static-field="org.ktunaxa.referral.server.service.KtunaxaConstant.KTUNAXA_TERRITORY_BUFFER_MAX_X"/>
				</property>
				<property name="maxY">
					<util:constant static-field="org.ktunaxa.referral.server.service.KtunaxaConstant.KTUNAXA_TERRITORY_BUFFER_MAX_Y"/>
				</property>
			</bean>
		</property>
		<property name="featureInfo" ref="referralFeatureInfo" />
		<property name="namedStyleInfos">
			<list>
				<ref bean="referralStyleInfo" />
			</list>
		</property>
	</bean>

    <bean class="org.geomajas.configuration.FeatureInfo" name="referralFeatureInfo">
        <property name="dataSourceName" value="org.ktunaxa.referral.server.domain.Referral"/>
        <property name="identifier">
            <bean class="org.geomajas.configuration.PrimitiveAttributeInfo">
                <property name="label" value="Id"/>
                <property name="name" value="id"/>
                <property name="type" value="LONG"/>
{'fraction_non_alphanumeric': 0.15412911532094906, 'fraction_numerical': 0.004598123965422108, 'mean_word_length': 4.498483316481294, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 98, 'https://': 0, 'lorem ipsum': 0, 'www.': 16, 'xml': 6}, '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': '2282', 'n_tokens_mistral': 2014, 'n_tokens_neox': 1784, 'n_words': 236}