0% found this document useful (0 votes)
52 views

Pension Earnings Service

This document describes a pension earnings service that retrieves data from the PSFT88.PS_YPENS_EARNINGS database table. The service exposes a RESTful API and includes a PensionEarnings model, repository, and service implementation. It provides pension earnings data for a given employee ID, including contribution year, vesting hours, unit credits, and pension earnings. The SQL queries to retrieve data from the table with and without translated plan type descriptions are also specified.

Uploaded by

balasuk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

Pension Earnings Service

This document describes a pension earnings service that retrieves data from the PSFT88.PS_YPENS_EARNINGS database table. The service exposes a RESTful API and includes a PensionEarnings model, repository, and service implementation. It provides pension earnings data for a given employee ID, including contribution year, vesting hours, unit credits, and pension earnings. The SQL queries to retrieve data from the table with and without translated plan type descriptions are also specified.

Uploaded by

balasuk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

PensionEarnings Service

Model: PensionEarnings.java
Repository: PensionEarningsRepository.java
Service: PensionEarningsServiceImpl.java (interface PensionEarningsService.java)
Controller: PensionEarningsController.java
Example URLs:
http://javadev1.yrcw.com:5069/api/v1/pensionearnings/emplid/0001000

Database table: PSFT88.PS_YPENS_EARNINGS number of columns: 10


View: PSFT88. YRC_ PENSEARNINGS _SERVICE
Public Synonym: YRC_ PENSEARNINGS _SERVICE

Note: This is an inquiry only service.

Service Data items:


Java name Database column
Id ID
emplid EMPLID
planType PLAN_TYPE
ycontributionYr YCONTRIBUTION_YR
ycurrVestHrs YCURR_VEST_HRS
yprevVestHrs YPREV_VEST_HRS
hrsYtd HRS_YTD
ycurrUnitCredits YCURR_UNIT_CREDITS
yttlUnitCredits YTTL_UNIT_CREDITS
ypensionEarnings YPENSION_EARNINGS
planTypeDesc PSFT88.PS_PLAN_TYPE_VW.DESCR

SQL for returning data from table:


select rowidtochar(pe.rowid) as ID, EMPLID
,PLAN_TYPE,YCONTRIBUTION_YR
,YCURR_VEST_HRS,YPREV_VEST_HRS,HRS_YTD
,YCURR_UNIT_CREDITS,YTTL_UNIT_CREDITS,YPENSION_EARNINGS
from psft88.PS_YPENS_EARNINGS pe

SQL for returning data from table with translations:


select rowidtochar(pe.rowid) as ID, trim(EMPLID) as EMPLID
,pe.PLAN_TYPE,YCONTRIBUTION_YR
,YCURR_VEST_HRS,YPREV_VEST_HRS,HRS_YTD
,YCURR_UNIT_CREDITS,YTTL_UNIT_CREDITS,YPENSION_EARNINGS
,trim(pt.descr) as planTypeDesc
from psft88.PS_YPENS_EARNINGS pe
left outer join PSFT88.PS_PLAN_TYPE_VW pt
on pe.plan_type = pt.PLAN_TYPE

You might also like