Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans         http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<!--

    Copyright 2005-2013 The Kuali Foundation

    Licensed under the Educational Community License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

    http://www.opensource.org/licenses/ecl2.php

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
  <bean id="EmploymentStatus" parent="EmploymentStatus-parentBean"/>
  <bean id="EmploymentStatus-parentBean" abstract="true" parent="BusinessObjectEntry">
    <property name="businessObjectClass" value="org.kuali.rice.kim.impl.identity.employment.EntityEmploymentStatusBo"/>
    <property name="inquiryDefinition">
      <ref bean="EmploymentStatus-inquiryDefinition"/>
    </property>
    <property name="lookupDefinition">
      <ref bean="EmploymentStatus-lookupDefinition"/>
    </property>
    <property name="objectLabel" value="Employee Status"/>
    <property name="titleAttribute" value="code"/>
    <property name="attributes">
      <list>
        <ref bean="EmploymentStatus-employmentStatusCode"/>
        <ref bean="EmploymentStatus-employmentStatusName"/>
        <ref bean="EmploymentStatus-active"/>
        <ref bean="EmploymentStatus-displaySortCode"/>
      </list>
    </property>
  </bean>

<!-- Attribute Definitions -->

  <bean id="EmploymentStatus-employmentStatusCode" parent="EmploymentStatus-employmentStatusCode-parentBean"/>
  <bean id="EmploymentStatus-employmentStatusCode-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="forceUppercase" value="true"/>
    <property name="name" value="code"/>
    <property name="label" value="Employee Status Code"/>
    <property name="shortLabel" value="Emp. Stat. Code"/>
    <property name="maxLength" value="2"/>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="3"/>
    </property>
    <property name="controlField">
      <bean parent="Uif-TextControl" p:size="3"/>
    </property>
  </bean>

  <bean id="EmploymentStatus-employmentStatusName" parent="EmploymentStatus-employmentStatusName-parentBean"/>
  <bean id="EmploymentStatus-employmentStatusName-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="name" value="name"/>
    <property name="label" value="Employee Status Name"/>
    <property name="shortLabel" value="Name"/>
    <property name="maxLength" value="10"/>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="10"/>
    </property>
    <property name="controlField">
      <bean parent="Uif-TextControl" p:size="10"/>
    </property>
  </bean>

  <bean id="EmploymentStatus-active" parent="EmploymentStatus-active-parentBean"/>
  <bean id="EmploymentStatus-active-parentBean" abstract="true" parent="AttributeReferenceDummy-activeIndicator">
    <property name="name" value="active"/>
  </bean>

  <bean id="EmploymentStatus-displaySortCode" parent="EmploymentStatus-displaySortCode-parentBean"/>
  <bean id="EmploymentStatus-displaySortCode-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="name" value="sortCode"/>
    <property name="label" value="Display Sort Code"/>
    <property name="shortLabel" value="Sort"/>
    <property name="maxLength" value="10"/>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="10"/>
    </property>
    <property name="controlField">
      <bean parent="Uif-TextControl" p:size="10"/>
    </property>
  </bean>

<!-- Business Object Inquiry Definition -->

  <bean id="EmploymentStatus-inquiryDefinition" parent="EmploymentStatus-inquiryDefinition-parentBean"/>
  <bean id="EmploymentStatus-inquiryDefinition-parentBean" abstract="true" parent="InquiryDefinition">
    <property name="title" value="Employee Status"/>
    <property name="inquirySections">
      <list>
        <bean parent="InquirySectionDefinition">
          <property name="title" value="Employment Status"/>
          <property name="numberOfColumns" value="1"/>
          <property name="inquiryFields">
            <list>
              <bean parent="FieldDefinition" p:attributeName="code"/>
              <bean parent="FieldDefinition" p:attributeName="name"/>
              <bean parent="FieldDefinition" p:attributeName="active"/>
            </list>
          </property>
        </bean>
      </list>
    </property>
  </bean>

<!-- Business Object Lookup Definition -->

  <bean id="EmploymentStatus-lookupDefinition" parent="EmploymentStatus-lookupDefinition-parentBean"/>
  <bean id="EmploymentStatus-lookupDefinition-parentBean" abstract="true" parent="LookupDefinition">
    <property name="title" value="Employee Status Lookup"/>
    <property name="lookupFields">
      <list>
        <bean parent="FieldDefinition" p:attributeName="code" p:noInquiry="true"/>
        <bean parent="FieldDefinition" p:attributeName="name"/>
        <bean parent="FieldDefinition" p:attributeName="sortCode"/>
        <bean parent="FieldDefinition" p:attributeName="active" p:defaultValue="Y"/> 
      </list>
    </property>
    <property name="resultFields">
      <list>
        <bean parent="FieldDefinition" p:attributeName="code"/>
        <bean parent="FieldDefinition" p:attributeName="name"/>
        <bean parent="FieldDefinition" p:attributeName="sortCode"/>
        <bean parent="FieldDefinition" p:attributeName="active"/>
      </list>
    </property>
  </bean>
</beans>
New to GrepCode? Check out our FAQ X