摘要: @Test public void queryByExample() { System.out.println("\nFind the Department with the name 'Humanities' \n" + departmentRepository.findOne(Example.o 阅读全文
posted @ 2020-12-18 04:24 Zhentiw 阅读(145) 评论(0) 推荐(0)
摘要: package com.example.university.repo; import com.example.university.domain.Staff; import org.springframework.data.domain.Page; import org.springframewo 阅读全文
posted @ 2020-12-18 04:20 Zhentiw 阅读(123) 评论(0) 推荐(0)
摘要: package com.example.university.repo; import com.example.university.domain.Staff; import com.example.university.domain.Student; import com.example.univ 阅读全文
posted @ 2020-12-18 04:10 Zhentiw 阅读(236) 评论(0) 推荐(0)
摘要: Entity: package com.example.university.domain; import javax.persistence.*; import java.util.ArrayList; import java.util.List; /** * JPA Entity represe 阅读全文
posted @ 2020-12-18 03:59 Zhentiw 阅读(117) 评论(0) 推荐(0)