Project

General

Profile

BocipSurchrgDtlImpl.hbm.xml

Kenny Chan, 03/02/2018 05:42 AM

Download (5.04 KB)

 
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
3
<hibernate-mapping package="test.pprog.dmo.uat9ampf3.impl">
4
  <!-- Typedefs for P2J wrapper types -->
5
  <typedef class="com.goldencode.p2j.persist.type.IntegerUserType" name="p2j_integer"/>
6
  <typedef class="com.goldencode.p2j.persist.type.Int64UserType" name="p2j_int64"/>
7
  <typedef class="com.goldencode.p2j.persist.type.DecimalUserType" name="p2j_decimal"/>
8
  <typedef class="com.goldencode.p2j.persist.type.LogicalUserType" name="p2j_logical"/>
9
  <typedef class="com.goldencode.p2j.persist.type.CharacterUserType" name="p2j_character"/>
10
  <typedef class="com.goldencode.p2j.persist.type.DateUserType" name="p2j_date"/>
11
  <typedef class="com.goldencode.p2j.persist.type.DatetimeUserType" name="p2j_datetime"/>
12
  <typedef class="com.goldencode.p2j.persist.type.DatetimeTzUserType" name="p2j_datetimetz"/>
13
  <typedef class="com.goldencode.p2j.persist.type.RawUserType" name="p2j_raw"/>
14
  <typedef class="com.goldencode.p2j.persist.type.RecIDUserType" name="p2j_recid"/>
15
  <typedef class="com.goldencode.p2j.persist.type.RowIDUserType" name="p2j_rowid"/>
16
  <!-- BocipSurchrgDtl class defined in .\data\namespace\uat9ampf3.p2o -->
17
  <class name="BocipSurchrgDtlImpl" table="bocip_surchrg_dtl">
18
    <!-- Second level cache -->
19
    <cache usage="nonstrict-read-write"/>
20
    <!-- Surrogate primary key -->
21
    <id column="id" name="id" type="long">
22
      <generator class="assigned"/>
23
    </id>
24
    <!-- Scheme No.; 9 digits + 2 check digits -->
25
    <property column="policy_no" length="0" name="policyNo" not-null="true" type="p2j_character"/>
26
    <!-- Seq No.; Company branch code. -->
27
    <property column="seq_no" name="seqNo" type="p2j_integer"/>
28
    <!-- Cover from; Date which contribution covered from. -->
29
    <property column="cover_fr" name="coverFr" type="p2j_date"/>
30
    <!-- Cover To; Date which contribution cover to. -->
31
    <property column="cover_to" name="coverTo" type="p2j_date"/>
32
    <!-- First pay end date; First Payment End date -->
33
    <property column="first_pay_date" name="firstPayDate" type="p2j_date"/>
34
    <!-- First pay surcharge; First payment Surcharge % -->
35
    <property column="first_pay_sur_percent" name="firstPaySurPercent" precision="50" scale="2" type="p2j_decimal"/>
36
    <!-- Second pay end date; second payment end date -->
37
    <property column="sec_pay_date" name="secPayDate" type="p2j_date"/>
38
    <!-- Second pay surcharge; Second payment surcharge -->
39
    <property column="sec_pay_sur_percent" name="secPaySurPercent" precision="50" scale="2" type="p2j_decimal"/>
40
    <!-- Plan# -->
41
    <property column="plan_no" length="0" name="planNo" type="p2j_character"/>
42
    <!-- Certificate No. -->
43
    <property column="cert_no" name="certNo" not-null="true" type="p2j_integer"/>
44
    <!-- Cont. Amount; EE cont. + ER cont. (exclude admin. charge) -->
45
    <property column="cont_amount" name="contAmount" precision="50" scale="2" type="p2j_decimal"/>
46
    <!-- Paid Surcharge; paid surcharge amount -->
47
    <property column="paid_surcharge" name="paidSurcharge" precision="50" scale="2" type="p2j_decimal"/>
48
    <!-- Calculated Surcharge; cont. amount x surcharge% x (first or second payment date - contribution day) / 356 days -->
49
    <property column="cal_surcharge" name="calSurcharge" precision="50" scale="2" type="p2j_decimal"/>
50
    <!-- 2nd Notification to MPFA Date; 2nd Notification to MPFA Date -->
51
    <property column="sec_notify_mpfa_date" name="secNotifyMpfaDate" type="p2j_date"/>
52
    <!-- 3rd Notification to MPFA Date; 3rd Notification to MPFA Date -->
53
    <property column="third_notify_mpfa_date" name="thirdNotifyMpfaDate" type="p2j_date"/>
54
    <!-- Surcharge Status -->
55
    <property column="surchg_status" length="0" name="surchgStatus" type="p2j_character"/>
56
    <!-- Batch No; Contribution Update Batch running no / bill no. self bill: batch-no auto-bill : bill no -->
57
    <property column="batch_no" length="0" name="batchNo" type="p2j_character"/>
58
    <!-- Policy Count; Recid for this policy+branch+covering period in the batch.  This recid together with batch no. will duplicate in cont-upd-dtl file. format: 'G' +nnnnnnnnn where 'G' is a hard coded prefix to avoid duplicate record after conversion (since this field is an integer in the TG version) and n is a 9 digits sequence number -->
59
    <property column="pol_cnt" length="0" name="polCnt" type="p2j_character"/>
60
    <!-- MPFA first notice date; MPFA first notice date -->
61
    <property column="first_notice_date" name="firstNoticeDate" type="p2j_date"/>
62
    <!-- Surcharge Factor; Surcharge Factor -->
63
    <property column="surchg_factor" name="surchgFactor" precision="50" scale="5" type="p2j_decimal"/>
64
    <!-- 2nd Surcharge Factor; 2nd Surcharge Factor it can only be updated after the 2nd Notification to MPFA has been generated -->
65
    <property column="sec_surchg_factor" name="secSurchgFactor" precision="50" scale="5" type="p2j_decimal"/>
66
  </class>
67
</hibernate-mapping>