Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何在不创建自定义验证器的情况下验证两个实体属性的复合唯一性?
您可以将几个字段传递给注释:
@UniqueEntity(fields={"firstField", "secondField"})