This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
/
demo.txt
55 lines (46 loc) · 1.46 KB
/
demo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
1. Introduction
---------------
- Project structure
- Spring configuration
- Services
- Test cases
2. Issues
---------
- Generics, simple queries, pagination (no metadata), is new?, arbitrary queries
- Approach: step by step refactoring -> introduce Hades
3. CustomerRepository
---------------------
- add dependency to CustomerServiceImpl
- replace findById, findAll, save
- run test
4. Explain general proxy mechanism, GenericJpaDao
-------------------------------------------------
- show GenericDao interface
- readAll(Pageable pageble)
5. AccountRepository
--------------------
- replace saven(…)
- findByCustomer -> show log -> method created from method name
- explain proxy mechanism, methods signature possibilities (@Param, return types, Pageable, Sort)
- -> replace findByLastname(Pageable pageable) in CustomerService
6. First summary
----------------
- implementation got obsolete
- switch to after package
-- alter packages to .after, remove component scan element
7. Custom implementation
------------------------
- copy interface and implementation (hint to visibility)
- adapt AccountDao
- copy test case
- explain implementation class lookup
8. JDBC implementation
-----------------------
- copy implementation -> configuration necessary
- copy XML
- run tests -> fail (shows that JDBc bean is used)
- fix SQL by adding FROM -> tests run again
9. Auditing (optional)
-----------------------
- show auditing test from Hades sample project
10. Back to slide deck