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,18 @@
import org.mapstruct.Mapper;
/** MapStruct can map String to String and Tag to Tag-like beans, but not a Tag to a String. */
@Mapper
public interface BrokenMapper {
class Tag {
private final String label;
public Tag(String label) { this.label = label; }
public String getLabel() { return label; }
}
record Src(Tag tag) { }
record Dst(java.time.LocalDate tag) { }
Dst map(Src src);
}