我正在使用MySQL数据库。 我的表是一个员工,其中有两个主键,其中一个是自动递增的。 我的代码是: @Embeddable
public class EmployeeId implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
我们有一个仓库,我们想用一个动态投影,并使用分页: @Repository
public interface PersonRepository extends JpaRepository<Person, Long> {
@Query("select p from Person p")
<T> Page<T> dynamicInterfaceProjection(final C