New posts for Spring and Hibernate

This commit is contained in:
2026-11-06 01:05:27 +05:30
parent 51913ad9d4
commit dc13293046
136 changed files with 5268 additions and 0 deletions
@@ -0,0 +1,13 @@
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
/** The target record has a component (note) that the source does not have. */
@Mapper(unmappedTargetPolicy = ReportingPolicy.ERROR)
public interface BrokenMapper {
record Src(String name, int qty) { }
record Dst(String name, int qty, String note) { }
Dst map(Src src);
}