1111 * named-parameter SQL). SQL only — decisions live in the service; entities never cross the service
1212 * boundary (the service maps them to the {@code MillSubmitter} DTO in Story 2.2).
1313 *
14- * <p>Story 2.1 scaffolds the read side; the assign/end write methods and the mill-join enrichment are
15- * added in Story 2.2. These reads are exercised (red) by Story 2.2's tests.
14+ * <p>Story 2.1 scaffolds the read side; the assign/end write methods and the mill-join enrichment
15+ * are added in Story 2.2. These reads are exercised (red) by Story 2.2's tests.
1616 */
1717@ org .springframework .stereotype .Repository
18- public interface MillUserProfileXrefRepository
19- extends Repository <MillUserProfileXrefEntity , Long > {
18+ public interface MillUserProfileXrefRepository extends Repository <MillUserProfileXrefEntity , Long > {
2019
2120 /**
22- * All assignment rows for a mill — active (END_DATE null) and ended — most-recently-started first.
23- * The service filters/derives status and joins {@code THE.MILL} for the mill number/name (2.2).
21+ * All assignment rows for a mill — active (END_DATE null) and ended — most-recently-started
22+ * first. The service filters/derives status and joins {@code THE.MILL} for the mill number/name
23+ * (2.2).
2424 *
2525 * @param millId the {@code ILCR_MILL_ID}
2626 * @return the mill's assignment rows
2727 */
28- @ Query ("""
28+ @ Query (
29+ """
2930 SELECT ILCR_MILL_USER_PROFILE_XREF_ID, USER_GUID, ILCR_MILL_ID, USER_DISPLAY_NAME, IDP_USERNAME,
3031 START_DATE, END_DATE, REVISION_COUNT, ENTRY_USERID, ENTRY_TIMESTAMP, UPDATE_USERID,
3132 UPDATE_TIMESTAMP
@@ -36,12 +37,14 @@ public interface MillUserProfileXrefRepository
3637 List <MillUserProfileXrefEntity > findByMill (@ Param ("millId" ) long millId );
3738
3839 /**
39- * All assignment rows for a submitter (by FAM {@code custom:idp_user_id}) — the user-centric read.
40+ * All assignment rows for a submitter (by FAM {@code custom:idp_user_id}) — the user-centric
41+ * read.
4042 *
4143 * @param userGuid the FAM user GUID ({@code USER_GUID})
4244 * @return the submitter's assignment rows
4345 */
44- @ Query ("""
46+ @ Query (
47+ """
4548 SELECT ILCR_MILL_USER_PROFILE_XREF_ID, USER_GUID, ILCR_MILL_ID, USER_DISPLAY_NAME, IDP_USERNAME,
4649 START_DATE, END_DATE, REVISION_COUNT, ENTRY_USERID, ENTRY_TIMESTAMP, UPDATE_USERID,
4750 UPDATE_TIMESTAMP
0 commit comments