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="CitizenshipStatus" parent="CitizenshipStatus-parentBean"/>
  <bean id="CitizenshipStatus-parentBean" abstract="true" parent="BusinessObjectEntry">
    <property name="businessObjectClass" value="org.kuali.rice.kim.impl.identity.citizenship.EntityCitizenshipStatusBo"/>
    <property name="inquiryDefinition">
      <ref bean="CitizenshipStatus-inquiryDefinition"/>
    </property>
    <property name="lookupDefinition">
      <ref bean="CitizenshipStatus-lookupDefinition"/>
    </property>
    <property name="objectLabel" value="Citizenship Status"/>
    <property name="attributes">
      <list>
        <ref bean="CitizenshipStatus-citizenshipStatusCode"/>
        <ref bean="CitizenshipStatus-citizenshipStatusName"/>
        <ref bean="CitizenshipStatus-displaySortCode"/>
        <ref bean="CitizenshipStatus-active"/>
        
      </list>
    </property>
  </bean>

<!-- Attribute Definitions -->

  <bean id="CitizenshipStatus-citizenshipStatusCode" parent="CitizenshipStatus-citizenshipStatusCode-parentBean"/>
  <bean id="CitizenshipStatus-citizenshipStatusCode-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="forceUppercase" value="true"/>  
    <property name="name" value="code"/>
    <property name="label" value="Citizenship Status Code"/>
    <property name="shortLabel" value="Citizenship Status Code"/>
    <property name="maxLength" value="7"/>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="9"/>
    </property>
    <property name="summary" value="The citizenship status code."/>
    <property name="description" value="The citizenship status code."/>
  </bean>

  <bean id="CitizenshipStatus-citizenshipStatusName" parent="CitizenshipStatus-citizenshipStatusName-parentBean"/>
  <bean id="CitizenshipStatus-citizenshipStatusName-parentBean" abstract="true" parent="AttributeDefinition">
    <property name="name" value="name"/>
    <property name="label" value="Citizenship Status Name"/>
    <property name="shortLabel" value="Name"/>
    <property name="maxLength" value="50"/>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="52"/>
    </property>
    <property name="summary" value="Descriptive text."/>
    <property name="description" value="Descriptive text."/>
  </bean>
  
  <bean id="CitizenshipStatus-displaySortCode" parent="CitizenshipStatus-displaySortCode-parentBean"/>
  <bean id="CitizenshipStatus-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="1"/>
    <property name="control">
      <bean parent="TextControlDefinition" p:size="3"/>
    </property>
    <property name="summary" value="Descriptive text."/>
    <property name="description" value="Descriptive text."/>
  </bean>

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

<!-- Business Object Inquiry Definition -->

  <bean id="CitizenshipStatus-inquiryDefinition" parent="CitizenshipStatus-inquiryDefinition-parentBean"/>
  <bean id="CitizenshipStatus-inquiryDefinition-parentBean" abstract="true" parent="InquiryDefinition">
    <property name="title" value="Citizenship Status"/>
    <property name="inquirySections">
      <list>
        <bean parent="InquirySectionDefinition">
          <property name="title" value="Citizenship 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="sortCode"/>
              <bean parent="FieldDefinition" p:attributeName="active"/>
            </list>
          </property>
        </bean>
      </list>
    </property>
  </bean>

<!-- Business Object Lookup Definition -->

  <bean id="CitizenshipStatus-lookupDefinition" parent="CitizenshipStatus-lookupDefinition-parentBean"/>
  <bean id="CitizenshipStatus-lookupDefinition-parentBean" abstract="true" parent="LookupDefinition">
    <property name="title" value="Citizenship Status Lookup"/>
    
    <property name="lookupFields">
      <list>
        <bean parent="FieldDefinition" p:attributeName="code"/>
        <bean parent="FieldDefinition" p:attributeName="name"/>
        <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