アノテーションインターフェースの使用
jakarta.persistence.UniqueConstraint

jakarta.persistence.UniqueConstraint の使用なし