我使用spring-boot-starter-data-jdbc 2.4.2。在我的域聚合中,我需要映射一个字符串列表,该列表由另一个表中的列填充。它是一个遗留数据库,所以我无法控制表名和列名,需要使用自定义名称。我看到有一个@MappedCollection注释,但不知道如何在这个场景中使用它。下面是我的类: @Datapublic class Movie
我使用的是spring MVC和hibernate框架,.i有两个表,.those是Team,Releases.it有一个一对多的映射。failed; nested exception is org.springframework.dao.DataIntegrityViolationException: nested exception is org.hibernate.exception.ConstraintViolatio