9470. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/11/2017 10:45:03 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

9470.1 Files compared

# Location File Last Modified
1 Tue Apr 11 15:45:03 2017 UTC
2 PS_PPS_lib\mavenrepo\vha\stddata\vha-stddata-client\15.0\vha-stddata-client-15.0..jar\def\gov\va\med\term\access ZipCode.xml Thu Sep 6 07:48:26 2007 UTC

9470.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 819
Removed 0 0

9470.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

9470.4 Active regular expressions

No regular expressions were active.

9470.5 Comparison detail

        1   <?xml 
        2     version="1 .0" 
        3     encoding=" UTF-8"
        4   ?>
        5   <type 
        6     _simple-cl ass-name=" ZipCode" 
        7     _a="a" 
        8     _package=" gov.va.med .term.acce ss" 
        9     _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" 
        10     _implement ation-clas s-simple-n ame="Mutab leZipCode"  
        11     _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableZipC ode" 
        12     _mutable-c lass-name= "gov.va.me d.term.acc ess.mutabl e.ZipCode"  
        13     _readonly- class-pack age="gov.v a.med.term .access.re adonly" 
        14     _transfero bject-clas s-package= "gov.va.me d.term.acc ess.ejb.co mmon" 
        15     _readonly- class-simp le-name="R eadonlyZip Code" 
        16     _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyZipCode"  
        17     _transfero bject-clas s-simple-n ame="ZipCo deTOv1" 
        18     _transfero bject-clas s-name="go v.va.med.t erm.access .ejb.commo n.ZipCodeT Ov1" 
        19     _capitaliz ed-name-at tr="ZipCod e" 
        20     _decapital ized-class -name="zip Code" 
        21     _table-abb rev="STD_Z ipCode" 
        22     auditable= "true" 
        23     has-versio n-number=" true" 
        24     name="gov. va.med.ter m.access.Z ipCode" 
        25     name-attr= "zipCode" 
        26     serial-ver sion-uid=" 1" 
        27     short-desc ription="U .S. Postal  Service Z IP Code." 
        28     table="STD _ZipCode" 
        29     user-name= "ZIP Code"  
        30     tablespace ="S_DATA_0 1" 
        31     indexspace ="S_INDEX_ 01" 
        32     read-only= "false" 
        33     deleteable ="false" 
        34     supports-l ogical-del ete="true"  
        35     temporal=" snapshot" 
        36     abstract=" false"
        37   >
        38        
        39     <descripti on>
        40      The U.S. P ostal Serv ice implem ented the  ZIP (Zonin g Improvem ent Plan)  Code to im prove the  sorting an d delivery  
        41      of mail an d ease the  way towar d better,  faster aut omated pro cessing of  letters a nd package s. 
        42      &lt;p&gt;I n the Unit ed States  this is a  five digit  code that  identifie s a specif ic geograp hic delive ry area.&l t;/p&gt; 
        43      &lt;p&gt;Z IP Codes c an represe nt an area  within a  state, an  area that  crosses st ate bounda ries (unus ual condit ion) or 
        44      a single b uilding or  company t hat has a  very high  mail volum e. &lt;/p& gt;
        45      &lt;p&gt;
        46      The author itative so urce for t his data i s the Unit ed States  Postal Ser vice. 
        47            &lt; /p&gt;
        48        
        49     </descript ion>
        50        
        51     <alternate -key-group  
        52      _capitaliz ed-name="Z ipCode" 
        53      _abbrev="Z ipCode" 
        54      name="zipC ode" 
        55      short-desc ription="Z ipCode"
        56     >
        57            
        58      <alternate -key-eleme nt 
        59       name="zipC ode"
        60      />
        61        
        62         
        63     </alternat e-key-grou p>
        64        
        65     <sort-attr s>
        66            
        67      <sort-attr  
        68       name="zipC ode"
        69      />
        70         
        71     </sort-att rs>
        72        
        73     <attr 
        74      name="id" 
        75      datatype=" Long" 
        76      display-on -list="fal se" 
        77      display-on -search="f alse" 
        78      display-on -view="fal se" 
        79      key="syste m-assigned
        80      min-value= "1" 
        81      short-desc ription="T he identif ier for th e ZIP Code .  This is  the prima ry key for  the objec t." 
        82      user-name= "Id" 
        83      private="f alse" 
        84      owning="fa lse" 
        85      shared-key ="false" 
        86      required=" false" 
        87      unique="tr ue" 
        88      frozen="tr ue" 
        89      password=" false" 
        90      allow-patt ern-search ="false" 
        91      allow-soun dex-search ="false" 
        92      _capitaliz ed-name="I d" 
        93      _accessor- name="getI d" 
        94      _mutator-n ame="setId
        95      _hibernate -name="id"  
        96      _derived=" false" 
        97      _system-as signed="tr ue" 
        98      _is-user-d efined="fa lse" 
        99      _column-na me="id" 
        100      _capitaliz ed-column- name="Id" 
        101      _column-ab brev="Id" 
        102      _is-multi= "false" 
        103      _atomic-da tatype="Lo ng" 
        104      _simple-da tatype="Lo ng" 
        105      _simple-at omic-datat ype="Long"
        106     />
        107        
        108     <attr 
        109      name="zipC ode" 
        110      datatype=" String" 
        111      max-length ="10" 
        112      required=" true" 
        113      short-desc ription="T he unique  ZIP Code."  
        114      transforms ="Uppercas e" 
        115      unique="tr ue" 
        116      user-name= "ZIP Code"  
        117      private="f alse" 
        118      owning="fa lse" 
        119      shared-key ="false" 
        120      frozen="fa lse" 
        121      password=" false" 
        122      display-on -search="t rue" 
        123      display-on -list="tru e" 
        124      display-on -view="tru e" 
        125      allow-patt ern-search ="false" 
        126      allow-soun dex-search ="false" 
        127      _capitaliz ed-name="Z ipCode" 
        128      _accessor- name="getZ ipCode" 
        129      _mutator-n ame="setZi pCode" 
        130      _hibernate -name="zip Code" 
        131      _derived=" false" 
        132      _system-as signed="fa lse" 
        133      _is-user-d efined="fa lse" 
        134      _column-na me="zipCod e" 
        135      _capitaliz ed-column- name="ZipC ode" 
        136      _column-ab brev="ZipC ode" 
        137      _is-multi= "false" 
        138      _atomic-da tatype="St ring" 
        139      _simple-da tatype="St ring" 
        140      _simple-at omic-datat ype="Strin g"
        141     />
        142        
        143     <attr 
        144      name="zipP laces" 
        145      datatype=" gov.va.med .term.acce ss.ZipPlac e[]" 
        146      associatio n="gov.va. med.term.a ccess.ZipA ssignment"  
        147      short-desc ription="T he places  assigned f or this ZI P Code." 
        148      user-name= "ZIP Place s" 
        149      private="f alse" 
        150      owning="fa lse" 
        151      shared-key ="false" 
        152      required=" false" 
        153      unique="fa lse" 
        154      frozen="fa lse" 
        155      password=" false" 
        156      display-on -search="f alse" 
        157      display-on -list="fal se" 
        158      display-on -view="tru e" 
        159      allow-patt ern-search ="false" 
        160      allow-soun dex-search ="false" 
        161      _capitaliz ed-name="Z ipPlaces" 
        162      _accessor- name="getZ ipPlaces" 
        163      _mutator-n ame="setZi pPlaces" 
        164      _hibernate -name="zip Places" 
        165      _derived=" false" 
        166      _system-as signed="fa lse" 
        167      _is-user-d efined="tr ue" 
        168      _column-na me="zipPla ces" 
        169      _capitaliz ed-column- name="ZipP laces" 
        170      _column-ab brev="ZipP laces" 
        171      _is-multi= "true" 
        172      _singular- name="zipP lace" 
        173      _capitaliz ed-singula r-name="Zi pPlace" 
        174      _atomic-da tatype="go v.va.med.t erm.access .ZipPlace"  
        175      _simple-da tatype="Zi pPlace[]" 
        176      _simple-at omic-datat ype="ZipPl ace" 
        177      _datatype- package="g ov.va.med. term.acces s" 
        178      _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" 
        179      _implement ation-clas s-simple-n ame="Mutab leZipPlace
        180      _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableZipP lace" 
        181      _atomic-mu table-data type="gov. va.med.ter m.access.m utable.Zip Place" 
        182      _mutable-d atatype="g ov.va.med. term.acces s.mutable. ZipPlace[]
        183      _readonly- class-pack age="gov.v a.med.term .access.re adonly" 
        184      _readonly- class-simp le-name="R eadonlyZip Place" 
        185      _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyZipPlace
        186      _supports- logical-de lete="true
        187      _datatype- is-attr-gr oup="false
        188      _role="par ent" 
        189      _relations hip="one-t o-many" 
        190      _stores-fo reign-key= "false" 
        191      _bidirecti onal="fals e" 
        192      _associati on-class-s imple-name ="ZipAssig nment" 
        193      _associati on-package ="gov.va.m ed.term.ac cess" 
        194      _associati on-impleme ntation-cl ass-simple -name="Mut ableZipAss ignment" 
        195      _associati on-impleme ntation-cl ass-name=" gov.va.med .term.acce ss.mutable .MutableZi pAssignmen t" 
        196      _associati on-mutable -class-nam e="gov.va. med.term.a ccess.muta ble.ZipAss ignment" 
        197      _associati on-back-re f-index="1
        198      _associati on-back-re f-name="zi pcode" 
        199      _associati on-peer-re f-index="2
        200      _associati on-peer-re f-name="zi pplace" 
        201      _capitaliz ed-associa tion-peer- ref-name=" Zipplace" 
        202      _associati on-peer-re f-accessor ="getZippl ace"
        203     >
        204            
        205      <hibernate -filter>
        206       "o.id in ( (select x. zipplace f rom gov.va .med.term. access.mut able.Mutab leZipAssig nment x, g ov.va.med. term.acces s.mutable. MutableZip Code y whe re (x.zipc ode=y.id)  and (y.sta te="
        207                                 +(((su bject!=nul l)&amp;&am p;(subject .getState( )!=null))? subject.ge tState().g etId():nul l)
        208                                 + "))  union (sel ect x.id f rom gov.va .med.term. access.mut able.Mutab leZipPlace  x where n ot exists( from gov.v a.med.term .access.mu table.Muta bleZipAssi gnment y w here x.id  = y.zippla ce)))"
        209      </hibernat e-filter>
        210            
        211     </attr>
        212        
        213     <attr 
        214      name="zipC lassificat ion" 
        215      datatype=" gov.va.med .term.acce ss.ZipClas sification
        216      short-desc ription="T he Zip Cla ssificatio n for this  ZIP Code.
        217      user-name= "ZIP Class ification"  
        218      private="f alse" 
        219      owning="fa lse" 
        220      shared-key ="false" 
        221      required=" false" 
        222      unique="fa lse" 
        223      frozen="fa lse" 
        224      password=" false" 
        225      display-on -search="t rue" 
        226      display-on -list="tru e" 
        227      display-on -view="tru e" 
        228      allow-patt ern-search ="false" 
        229      allow-soun dex-search ="false" 
        230      _capitaliz ed-name="Z ipClassifi cation" 
        231      _accessor- name="getZ ipClassifi cation" 
        232      _mutator-n ame="setZi pClassific ation" 
        233      _hibernate -name="zip Classifica tion" 
        234      _derived=" false" 
        235      _system-as signed="fa lse" 
        236      _is-user-d efined="tr ue" 
        237      _column-na me="zipCla ssificatio n" 
        238      _capitaliz ed-column- name="ZipC lassificat ion" 
        239      _column-ab brev="ZipC lassificat ion" 
        240      _is-multi= "false" 
        241      _atomic-da tatype="go v.va.med.t erm.access .ZipClassi fication" 
        242      _simple-da tatype="Zi pClassific ation" 
        243      _simple-at omic-datat ype="ZipCl assificati on" 
        244      _datatype- package="g ov.va.med. term.acces s" 
        245      _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" 
        246      _implement ation-clas s-simple-n ame="Mutab leZipClass ification"  
        247      _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableZipC lassificat ion" 
        248      _atomic-mu table-data type="gov. va.med.ter m.access.m utable.Zip Classifica tion" 
        249      _mutable-d atatype="g ov.va.med. term.acces s.mutable. ZipClassif ication" 
        250      _readonly- class-pack age="gov.v a.med.term .access.re adonly" 
        251      _readonly- class-simp le-name="R eadonlyZip Classifica tion" 
        252      _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyZipClass ification"  
        253      _supports- logical-de lete="true
        254      _datatype- is-attr-gr oup="false
        255      _role="par ent" 
        256      _relations hip="many- to-optiona l" 
        257      _stores-fo reign-key= "true" 
        258      _bidirecti onal="fals e"
        259     />
        260        
        261     <attr 
        262      name="pref erredZipPl ace" 
        263      datatype=" gov.va.med .term.acce ss.ZipPlac e" 
        264      short-desc ription="T he preferr ed Zip Pla ce for thi s ZIP Code ." 
        265      user-name= "Preferred  Zip Place
        266      private="f alse" 
        267      owning="fa lse" 
        268      shared-key ="false" 
        269      required=" false" 
        270      unique="fa lse" 
        271      frozen="fa lse" 
        272      password=" false" 
        273      display-on -search="t rue" 
        274      display-on -list="tru e" 
        275      display-on -view="tru e" 
        276      allow-patt ern-search ="false" 
        277      allow-soun dex-search ="false" 
        278      _capitaliz ed-name="P referredZi pPlace" 
        279      _accessor- name="getP referredZi pPlace" 
        280      _mutator-n ame="setPr eferredZip Place" 
        281      _hibernate -name="pre ferredZipP lace" 
        282      _derived=" false" 
        283      _system-as signed="fa lse" 
        284      _is-user-d efined="tr ue" 
        285      _column-na me="prefer redZipPlac e" 
        286      _capitaliz ed-column- name="Pref erredZipPl ace" 
        287      _column-ab brev="Pref erredZipPl ace" 
        288      _is-multi= "false" 
        289      _atomic-da tatype="go v.va.med.t erm.access .ZipPlace"  
        290      _simple-da tatype="Zi pPlace" 
        291      _simple-at omic-datat ype="ZipPl ace" 
        292      _datatype- package="g ov.va.med. term.acces s" 
        293      _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" 
        294      _implement ation-clas s-simple-n ame="Mutab leZipPlace
        295      _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableZipP lace" 
        296      _atomic-mu table-data type="gov. va.med.ter m.access.m utable.Zip Place" 
        297      _mutable-d atatype="g ov.va.med. term.acces s.mutable. ZipPlace" 
        298      _readonly- class-pack age="gov.v a.med.term .access.re adonly" 
        299      _readonly- class-simp le-name="R eadonlyZip Place" 
        300      _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyZipPlace
        301      _supports- logical-de lete="true
        302      _datatype- is-attr-gr oup="false
        303      _role="par ent" 
        304      _relations hip="many- to-optiona l" 
        305      _stores-fo reign-key= "true" 
        306      _bidirecti onal="fals e"
        307     >
        308            
        309      <hibernate -filter>
        310       "o.id in ( select z.z ipplace fr om gov.va. med.term.a ccess.muta ble.Mutabl eZipAssign ment z whe re z.zipco de = " + ( (subject!= null)?subj ect.getId( ):null) +  ")"
        311      </hibernat e-filter>
        312            
        313     </attr>
        314        
        315     <attr 
        316      name="stat e" 
        317      datatype=" gov.va.med .term.acce ss.State" 
        318      required=" true" 
        319      short-desc ription="T he State f or this ZI P Code." 
        320      user-name= "State" 
        321      private="f alse" 
        322      owning="fa lse" 
        323      shared-key ="false" 
        324      unique="fa lse" 
        325      frozen="fa lse" 
        326      password=" false" 
        327      display-on -search="t rue" 
        328      display-on -list="tru e" 
        329      display-on -view="tru e" 
        330      allow-patt ern-search ="false" 
        331      allow-soun dex-search ="false" 
        332      _capitaliz ed-name="S tate" 
        333      _accessor- name="getS tate" 
        334      _mutator-n ame="setSt ate" 
        335      _hibernate -name="sta te" 
        336      _derived=" false" 
        337      _system-as signed="fa lse" 
        338      _is-user-d efined="tr ue" 
        339      _column-na me="state"  
        340      _capitaliz ed-column- name="Stat e" 
        341      _column-ab brev="Stat e" 
        342      _is-multi= "false" 
        343      _atomic-da tatype="go v.va.med.t erm.access .State" 
        344      _simple-da tatype="St ate" 
        345      _simple-at omic-datat ype="State
        346      _datatype- package="g ov.va.med. term.acces s" 
        347      _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" 
        348      _implement ation-clas s-simple-n ame="Mutab leState" 
        349      _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableStat e" 
        350      _atomic-mu table-data type="gov. va.med.ter m.access.m utable.Sta te" 
        351      _mutable-d atatype="g ov.va.med. term.acces s.mutable. State" 
        352      _readonly- class-pack age="gov.v a.med.term .access.re adonly" 
        353      _readonly- class-simp le-name="R eadonlySta te" 
        354      _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyState" 
        355      _supports- logical-de lete="true
        356      _datatype- is-attr-gr oup="false
        357      _role="par ent" 
        358      _relations hip="many- to-one" 
        359      _stores-fo reign-key= "true" 
        360      _bidirecti onal="fals e"
        361     />
        362        
        363     <attr 
        364      name="coun tyNumber" 
        365      datatype=" String" 
        366      length="3"  
        367      user-name= "Number" 
        368      short-desc ription="T he County  number for  this ZIP  Code." 
        369      pattern="[ \p{Digit}] {3}" 
        370      pattern-de scription= "three num eric chara cters" 
        371      private="f alse" 
        372      owning="fa lse" 
        373      shared-key ="false" 
        374      required=" false" 
        375      unique="fa lse" 
        376      frozen="fa lse" 
        377      password=" false" 
        378      display-on -search="t rue" 
        379      display-on -list="tru e" 
        380      display-on -view="tru e" 
        381      allow-patt ern-search ="false" 
        382      allow-soun dex-search ="false" 
        383      _capitaliz ed-name="C ountyNumbe r" 
        384      _accessor- name="getC ountyNumbe r" 
        385      _mutator-n ame="setCo untyNumber
        386      _hibernate -name="cou ntyNumber"  
        387      _derived=" false" 
        388      _system-as signed="fa lse" 
        389      _is-user-d efined="fa lse" 
        390      _column-na me="county Number" 
        391      _capitaliz ed-column- name="Coun tyNumber" 
        392      _column-ab brev="Coun tyNumber" 
        393      _is-multi= "false" 
        394      _atomic-da tatype="St ring" 
        395      _simple-da tatype="St ring" 
        396      _simple-at omic-datat ype="Strin g"
        397     />
        398        
        399     <attr 
        400      name="coun ty" 
        401      datatype=" gov.va.med .term.acce ss.County"  
        402      display-on -list="fal se" 
        403      short-desc ription="T he County  associated  with the  ZIP code;  a null val ue may be  returned i f no Count y is appli cable." 
        404      private="f alse" 
        405      owning="fa lse" 
        406      shared-key ="false" 
        407      required=" false" 
        408      unique="fa lse" 
        409      frozen="fa lse" 
        410      password=" false" 
        411      display-on -search="t rue" 
        412      display-on -view="tru e" 
        413      allow-patt ern-search ="false" 
        414      allow-soun dex-search ="false" 
        415      _capitaliz ed-name="C ounty" 
        416      user-name= "County" 
        417      _accessor- name="getC ounty" 
        418      _mutator-n ame="setCo unty" 
        419      _hibernate -name="cou nty" 
        420      _derived=" true" 
        421      _system-as signed="tr ue" 
        422      _is-user-d efined="tr ue" 
        423      _column-na me="county
        424      _capitaliz ed-column- name="Coun ty" 
        425      _column-ab brev="Coun ty" 
        426      _is-multi= "false" 
        427      _atomic-da tatype="go v.va.med.t erm.access .County" 
        428      _simple-da tatype="Co unty" 
        429      _simple-at omic-datat ype="Count y" 
        430      _datatype- package="g ov.va.med. term.acces s" 
        431      _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" 
        432      _implement ation-clas s-simple-n ame="Mutab leCounty" 
        433      _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableCoun ty" 
        434      _atomic-mu table-data type="gov. va.med.ter m.access.m utable.Cou nty" 
        435      _mutable-d atatype="g ov.va.med. term.acces s.mutable. County" 
        436      _readonly- class-pack age="gov.v a.med.term .access.re adonly" 
        437      _readonly- class-simp le-name="R eadonlyCou nty" 
        438      _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyCounty" 
        439      _supports- logical-de lete="true
        440      _datatype- is-attr-gr oup="false "
        441     >
        442           
        443            
        444      <derivatio n-method 
        445       apply-on-c reate="fal se"
        446      >
        447            // En sure we ha ve a count y number
        448            Strin g countyNb r =  getCo untyNumber (); 
        449            if (  countyNbr  == null )
        450            {
        451                r eturn null ;
        452            }
        453            
        454            Count y county =  County.fa ctory.obta inByNumber (getState( ), countyN br);
        455            retur n county;
        456            
        457      </derivati on-method>
        458        
        459         
        460     </attr>
        461        
        462     <attr 
        463      name="stat isticalAre a" 
        464      datatype=" gov.va.med .term.acce ss.Statist icalArea" 
        465      display-on -list="fal se" 
        466      short-desc ription="T he Statist ical Area  associated  with the  ZIP code's  county; a  null valu e may be r eturned if  no Statis ticalArea  is applica ble." 
        467      private="f alse" 
        468      owning="fa lse" 
        469      shared-key ="false" 
        470      required=" false" 
        471      unique="fa lse" 
        472      frozen="fa lse" 
        473      password=" false" 
        474      display-on -search="t rue" 
        475      display-on -view="tru e" 
        476      allow-patt ern-search ="false" 
        477      allow-soun dex-search ="false" 
        478      _capitaliz ed-name="S tatistical Area" 
        479      user-name= "Statistic al Area" 
        480      _accessor- name="getS tatistical Area" 
        481      _mutator-n ame="setSt atisticalA rea" 
        482      _hibernate -name="sta tisticalAr ea" 
        483      _derived=" true" 
        484      _system-as signed="tr ue" 
        485      _is-user-d efined="tr ue" 
        486      _column-na me="statis ticalArea"  
        487      _capitaliz ed-column- name="Stat isticalAre a" 
        488      _column-ab brev="Stat isticalAre a" 
        489      _is-multi= "false" 
        490      _atomic-da tatype="go v.va.med.t erm.access .Statistic alArea" 
        491      _simple-da tatype="St atisticalA rea" 
        492      _simple-at omic-datat ype="Stati sticalArea
        493      _datatype- package="g ov.va.med. term.acces s" 
        494      _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" 
        495      _implement ation-clas s-simple-n ame="Mutab leStatisti calArea" 
        496      _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableStat isticalAre a" 
        497      _atomic-mu table-data type="gov. va.med.ter m.access.m utable.Sta tisticalAr ea" 
        498      _mutable-d atatype="g ov.va.med. term.acces s.mutable. Statistica lArea" 
        499      _readonly- class-pack age="gov.v a.med.term .access.re adonly" 
        500      _readonly- class-simp le-name="R eadonlySta tisticalAr ea" 
        501      _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyStatisti calArea" 
        502      _supports- logical-de lete="true
        503      _datatype- is-attr-gr oup="false "
        504     >
        505           
        506            
        507      <derivatio n-method 
        508       apply-on-c reate="fal se"
        509      >
        510      
        511            // En sure we ha ve a count y
        512            Count y county =  getCounty ();
        513            if (  county ==  null )
        514            {
        515                r eturn null ;
        516            }
        517            
        518            // En sure we ha ve a Stati sticalArea
        519            Stati sticalArea [] statist icalAreas  = county.g etStatisti calAreas() ;
        520            retur n ( statis ticalAreas  == null | | statisti calAreas.l ength == 0  ) 
        521                      ? null  : statist icalAreas[ 0];
        522                            
        523            
        524      </derivati on-method>
        525        
        526         
        527     </attr>
        528        
        529     <attr 
        530      name="isAc tive" 
        531      datatype=" boolean" 
        532      short-desc ription="T rue if thi s object i s currentl y active."  
        533      private="f alse" 
        534      owning="fa lse" 
        535      shared-key ="false" 
        536      required=" false" 
        537      unique="fa lse" 
        538      frozen="fa lse" 
        539      password=" false" 
        540      display-on -search="t rue" 
        541      display-on -list="tru e" 
        542      display-on -view="tru e" 
        543      allow-patt ern-search ="false" 
        544      allow-soun dex-search ="false" 
        545      _capitaliz ed-name="I sActive" 
        546      user-name= "Is Active
        547      _accessor- name="isAc tive" 
        548      _mutator-n ame="setAc tive" 
        549      _hibernate -name="act ive" 
        550      _derived=" true" 
        551      _system-as signed="tr ue" 
        552      _is-user-d efined="fa lse" 
        553      _column-na me="isActi ve" 
        554      _capitaliz ed-column- name="IsAc tive" 
        555      _column-ab brev="IsAc tive" 
        556      _is-multi= "false" 
        557      _atomic-da tatype="bo olean" 
        558      _simple-da tatype="bo olean" 
        559      _simple-at omic-datat ype="boole an"
        560     >
        561            
        562      <derivatio n-expressi on 
        563       apply-on-c reate="fal se"
        564      >
        565               is Active(new  java.sql. Date(Syste m.currentT imeMillis( )))
        566               
        567      </derivati on-express ion>
        568         
        569     </attr>
        570        
        571     <attr 
        572      name="hist ory" 
        573      singular-n ame="histo ry" 
        574      datatype=" gov.va.med .term.acce ss.ZipCode History[]"  
        575      short-desc ription="T he status  history fo r Zip Code ." 
        576      owning="tr ue" 
        577      display-on -list="fal se" 
        578      private="f alse" 
        579      shared-key ="false" 
        580      required=" false" 
        581      unique="fa lse" 
        582      frozen="fa lse" 
        583      password=" false" 
        584      display-on -search="f alse" 
        585      display-on -view="tru e" 
        586      allow-patt ern-search ="false" 
        587      allow-soun dex-search ="false" 
        588      _capitaliz ed-name="H istory" 
        589      user-name= "History" 
        590      _accessor- name="getH istory" 
        591      _mutator-n ame="setHi story" 
        592      _hibernate -name="his tory" 
        593      _derived=" false" 
        594      _system-as signed="fa lse" 
        595      _is-user-d efined="tr ue" 
        596      _column-na me="histor y" 
        597      _capitaliz ed-column- name="Hist ory" 
        598      _column-ab brev="Hist ory" 
        599      _is-multi= "true" 
        600      _singular- name="hist ory" 
        601      _capitaliz ed-singula r-name="Hi story" 
        602      _atomic-da tatype="go v.va.med.t erm.access .ZipCodeHi story" 
        603      _simple-da tatype="Zi pCodeHisto ry[]" 
        604      _simple-at omic-datat ype="ZipCo deHistory"  
        605      _datatype- package="g ov.va.med. term.acces s" 
        606      _implement ation-clas s-package= "gov.va.me d.term.acc ess.mutabl e" 
        607      _implement ation-clas s-simple-n ame="Mutab leZipCodeH istory" 
        608      _implement ation-clas s-name="go v.va.med.t erm.access .mutable.M utableZipC odeHistory
        609      _atomic-mu table-data type="gov. va.med.ter m.access.m utable.Zip CodeHistor y" 
        610      _mutable-d atatype="g ov.va.med. term.acces s.mutable. ZipCodeHis tory[]" 
        611      _readonly- class-pack age="gov.v a.med.term .access.re adonly" 
        612      _readonly- class-simp le-name="R eadonlyZip CodeHistor y" 
        613      _readonly- class-name ="gov.va.m ed.term.ac cess.reado nly.Readon lyZipCodeH istory" 
        614      _supports- logical-de lete="fals e" 
        615      _datatype- is-attr-gr oup="false
        616      _role="par ent" 
        617      _relations hip="one-t o-many" 
        618      _stores-fo reign-key= "false" 
        619      _bidirecti onal="true
        620      _dependent -type="sim ple"
        621     />
        622        
        623     <query 
        624      short-desc ription="T rue if thi s object i s active o n the give n date."
        625     >
        626            
        627      <method-si gnature>
        628           boolea n
        629           isActi ve(
        630               ja va.sql.Dat e when
        631               )
        632           
        633      </method-s ignature>
        634            
        635      <method-bo dy>
        636       ZipCodeHis tory[] his tory = get History();
        637               fo r (int i=0 ; i&lt;his tory.lengt h; i++)
        638               {
        639                    ZipCodeH istory ent ry
        640        = history [i];
        641                    java.sql .Date effe ctiveDate  = entry.ge tEffective Date();
        642                    java.sql .Date expi rationDate  = entry.g etExpirati onDate();
        643                    if (   ( effectiveD ate.before (when) ||  effectiveD ate.equals (when))
        644                        &amp ;&amp; whe n.before(e xpirationD ate)
        645                       )
        646                    {
        647                        retu rn entry.i sActive();
        648                    }
        649               }
        650               re turn false ;
        651           
        652      </method-b ody>
        653         
        654     </query>
        655        
        656     <script 
        657      language=" beanshell"  
        658      id="prefer redZipPlac eMustBeAss igned"
        659     >
        660            bool ean result  = false;
        661            if ( object.pre ferredZipP lace != nu ll)
        662            {
        663                 Object id  = object.p referredZi pPlace.id;
        664                 Object[] v alues = ob ject.zipPl aces;
        665                 for (int i =0; i @lt  values.len gth; i++)
        666                 {
        667                     if (id .equals(va lues[i].id ))
        668                     {
        669                         re sult = tru e;
        670                         br eak;
        671                     }
        672                 }
        673                 if (!resul t)
        674                 {
        675                     errors .put(objec t.preferre dZipPlace,  "preferre dZipPlace" , "Zip pla ce must be  assigned  to zip cod e.");
        676                 }
        677            }
        678            else
        679            {
        680                 result = t rue;
        681            }
        682            retu rn result;
        683        
        684     </script>
        685        
        686     <extension >
        687          
        688            
        689      <hl7-messa ging-metad ata>
        690             
        691                
        692       <master-fi le-identif ier>
        693                
        694                     
        695        <coded-ele ment>
        696                   
        697                         
        698         <identifie r>
        699                       
        700                             
        701          <constant 
        702           value="gov .va.med.te rm.access. ZipCode"
        703          />
        704                    
        705                          
        706         </identifi er>
        707                   
        708                         
        709         <text>
        710                       
        711                             
        712          <constant 
        713           value="ZIP  Code"
        714          />
        715                    
        716                          
        717         </text>
        718                   
        719                         
        720         <coding-sy stem>
        721                       
        722                             
        723          <constant 
        724           value="SDS "
        725          />
        726                    
        727                          
        728         </coding-s ystem>
        729                 
        730                      
        731        </coded-el ement>
        732              
        733                 
        734       </master-f ile-identi fier>
        735             
        736                
        737       <primary-k ey-value>
        738                
        739                     
        740        <coded-ele ment>
        741                   
        742                         
        743         <identifie r>
        744                       
        745                             
        746          <attr-ref 
        747           name="id"
        748          />
        749                    
        750                          
        751         </identifi er>
        752                   
        753                         
        754         <text>
        755                       
        756                             
        757          <attr-ref 
        758           name="zipC ode"
        759          />
        760                    
        761                          
        762         </text>
        763                   
        764                         
        765         <coding-sy stem>
        766                       
        767                             
        768          <constant 
        769           value="SDS "
        770          />
        771                    
        772                          
        773         </coding-s ystem>
        774                   
        775                         
        776         <alternate -identifie r>
        777                       
        778                             
        779          <attr-ref 
        780           name="zipC ode"
        781          />
        782                    
        783                          
        784         </alternat e-identifi er>
        785                   
        786                         
        787         <alternate -text>
        788                       
        789                             
        790          <attr-ref 
        791           name="zipC ode"
        792          />
        793                    
        794                          
        795         </alternat e-text>
        796                   
        797                         
        798         <alternate -coding-sy stem>
        799                       
        800                             
        801          <constant 
        802           value="VA"
        803          />
        804                    
        805                          
        806         </alternat e-coding-s ystem>
        807                 
        808                      
        809        </coded-el ement>
        810              
        811                 
        812       </primary- key-value>
        813           
        814             
        815      </hl7-mess aging-meta data>
        816        
        817         
        818     </extensio n>
        819   </type>