上一页 1 ··· 164 165 166 167 168 169 170 171 172 ··· 498 下一页
摘要: Repo: public interface CourseRepository extends CrudRepository<Course,Integer>{ Optional<Course> findByName(String name); @Query("Select new com.examp 阅读全文
posted @ 2020-12-20 20:40 Zhentiw 阅读(198) 评论(0) 推荐(0)
摘要: @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 阅读(156) 评论(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 阅读(125) 评论(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 阅读(250) 评论(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 阅读(120) 评论(0) 推荐(0)
摘要: New broadcaster: compose: export let combine = (broadcaster1, broadcaster2) => listener => { let value1; let value2; let cancel1 = broadcaster1(value 阅读全文
posted @ 2020-12-17 15:49 Zhentiw 阅读(116) 评论(0) 推荐(0)
摘要: All features of CrudRepository plus: void flush(); saveAndFlush() delteInBatch() delteAllInBatch() package com.example.university.repo; import com.exa 阅读全文
posted @ 2020-12-17 02:36 Zhentiw 阅读(126) 评论(0) 推荐(0)
摘要: domain/Course.java package com.example.university.domain; import javax.persistence.*; /** * JPA Entity for a Course offered at the University. * <p> * 阅读全文
posted @ 2020-12-17 02:31 Zhentiw 阅读(141) 评论(0) 推荐(0)
摘要: @OneToMany: One Student To Many Courses. @JoinTable(name = "Enrollment"): Join Enrollment table. joinColumns: with use "student_id" to link Student an 阅读全文
posted @ 2020-12-17 02:14 Zhentiw 阅读(331) 评论(0) 推荐(0)
摘要: Repo: package com.example.ec.repo; import com.example.ec.domain.TourRating; import com.example.ec.domain.TourRatingPk; import org.springframework.data 阅读全文
posted @ 2020-12-16 03:13 Zhentiw 阅读(111) 评论(0) 推荐(0)
上一页 1 ··· 164 165 166 167 168 169 170 171 172 ··· 498 下一页