1@NamedNativeQuery(name = "Schedules",
2 query = "SELECT * FROM schedule_days WHERE employeeId = 8",
3 resultSetMapping = "ScheduleResult")
1@SqlResultSetMapping(
2 name="ScheduleResult",
3 classes={
4 @ConstructorResult(
5 targetClass=com.baeldung.sqlresultsetmapping.ScheduledDay.class,
6 columns={
7 @ColumnResult(name="id", type=Long.class),
8 @ColumnResult(name="employeeId", type=Long.class),
9 @ColumnResult(name="dayOfWeek")})})