Kristof Neirynck
61be1bac41
Fix #207 set pet owner when for has an error
2016-12-05 11:45:37 +00:00
Oscar Utbult
7dcae7cc86
Fix Javadoc error
2016-12-05 11:44:37 +00:00
Oscar Utbult
706c6fc647
Replace anonymous class with lambda
2016-12-05 11:44:14 +00:00
Dave Syer
83ff9a50e3
Modularize and migrate to aggregate-oriented domain
...
Vet, Owner, Visit. The Visit "aggregate" is a little artificial
but it demonstrates a useful point about not holding on to
references of "parent" (reference data) objects, i.e. the Visit has
an Integer petId, instead of a Pet field. In principle this app is
now almost ready to migrate to multiple services if anyone wanted
to do that.
2016-11-14 15:36:21 +00:00
Dave Syer
095b1a35d9
Move util class to test code
2016-11-10 17:45:54 +00:00
Dave Syer
e38a9feebe
Convert to jar with thymeleaf
2016-11-10 17:22:02 +00:00
Antoine Rey
d69b89691c
Fix #171 Jetty 9 support by removing Dandelion
2016-10-08 09:50:04 +02:00
Antoine Rey
f78ee5d76e
Using the @CacheResult JSR-107 JCache annotation
2016-10-06 20:01:50 +02:00
Dapeng
a9b6565fcf
Remove dependency with joda time to simplify the project dependencies
2016-09-25 18:25:33 +02:00
Stephane Nicoll
a41b83a2fd
Upgrade to Ehcache 3
...
I saw on twitter the reference of an article (in french):
http://javaetmoi.com/2016/08/migrer-vers-spring-boot/
That article concludes with something along the lines of "Besides the
EhCache and Maven configuration, Petclinic does not hold a single line
of XML anymore".
Looking at the code, we can remove more XML if you want. This PR migrates
the cache infrastructure to EhCache 3 and JCache (JSR-107). This also
reduces the number of dependencies.
2016-08-29 18:48:12 +02:00
Antoine Rey
2637f65b90
Upgrade to Spring Boot 1.4.0
2016-08-17 18:31:38 +02:00
Antoine Rey
616386803c
Revert "Make jar not war"
...
This reverts commit be048ae2ac .
2016-06-28 20:08:26 +02:00
Antoine Rey
be048ae2ac
Make jar not war
2016-06-28 20:01:32 +02:00
Dapeng
077f4eb105
simplify content negotiation setup
...
- remove custom xml view, use springboot builtin xml view
- remove oxm maven dependency
- remove json-simple maven dependency (seems not relevant anymore)
- update vetsXml test using xpath
2016-06-28 11:05:42 +08:00
Antoine Rey
1f42b7615d
#164 Set Dandelion active profile to "prod" when Spring production profile is enabled
2016-06-25 15:27:37 +02:00
Antoine Rey
4da41dbbda
#164 Disable cache configuration for unit tests
2016-06-24 21:18:38 +02:00
Antoine Rey
e9f5f7b541
#164 Add main class required by the spring-boot-maven-plugin
2016-06-23 19:46:56 +02:00
Antoine Rey
a6e81a51a0
#164 Spring Boot version of Petclinic ready to deploy to an external web container (ie Tomcat)
2016-06-23 19:42:02 +02:00
Attilio
ca755be44a
Improvements in VisitRepository.findByPetId implementation.
...
- In the Jdbc implementation: pets belonging to a visit were not added.
- In the Jpa implementation: query variable was wrong.
- Test case: AbstractClinicServiceTests.shouldFindVisitsByPetId()
2016-06-15 22:46:47 +02:00
Faisal Hameed
ad3d322fc6
Fising squid:S2970, squid:S1192, squid:S1488, squid:UselessParenthesesCheck
2016-05-13 14:59:46 +05:00
Tomas Repel
e00dfb3fe0
Using jodatime LocalDate instead of DateTime for visits
2015-11-02 10:51:04 +01:00
Antoine Rey
92de6557e1
Fix #111 For pet's birthday we are now using jodatime LocalDate instead of DateTime
2015-10-28 08:57:42 +01:00
Antoine Rey
4aa89ae4e2
Fix #110 owner and pet validators failed
2015-10-28 08:30:44 +01:00
Antoine Rey
dd552f4970
Fix #108 owner update
2015-10-26 18:35:40 +01:00
Antoine Rey
3bcf84543e
#77 move Session scope attributes to the request scope instead
2015-10-23 08:42:27 +02:00
Tomas Repel
2270e2466b
Removal of redundant comments
2015-10-16 15:04:17 +02:00
Antoine Rey
09ed33a5fc
#96 Reformat code with EditorConfig
2015-10-16 09:33:28 +02:00
Antoine Rey
566fdac3f9
Merge pull request #99 from trepel/removalofputmethod
...
Removed HTTP PUT method - it is not supported in JSP 2.3
2015-10-14 08:30:22 +02:00
michaelisvy
77bd960b69
Merge pull request #98 from freemansoft/master
...
Add comments to describe when AOP invoked
2015-10-14 05:17:54 +08:00
Antoine Rey
4bb829cbd1
Fix #101 display the pet type when using the JDBC profile
2015-10-13 18:41:18 +02:00
Tomas Repel
f7498c79df
Removed HTTP PUT method - it is not supported in JSP 2.3
2015-10-02 11:33:57 +02:00
Joe Freeman
5a6c108efb
Added comments when CallMonitoringAspect called
...
CallMonitoringAspect is not invoked when spring-data-jpa is used. Spent
4 hours trying to understand why jmx bean wasn't showing message counts.
Use JPA or JDBC if you want call counts exposed via JMX / AOP
2015-09-30 21:20:34 -04:00
Antoine Rey
06be7eb5be
#92 Use column alias
2015-08-20 08:19:57 +02:00
Antoine Rey
91d19d17b8
#92 Fix column 'visits.id' not found on MySql
2015-08-19 18:55:52 +02:00
Antoine Rey
0fdd1504b4
Removing deprecated javadoc
2015-06-29 09:03:58 +02:00
Antoine Rey
8b625617cb
#87 Petclinic should be compatible with Java 7 for the time being
2015-06-29 08:50:04 +02:00
Antoine Rey
80ff54ac03
Fix #89 Web layer: use @Valid whenever possible
2015-06-29 08:37:29 +02:00
Antoine Rey
71f2424542
Remove explicit unboxing
2015-06-24 08:12:43 +02:00
Antoine Rey
6f6fa64dd7
Remove unused VisitRepository from constructor
2015-06-24 08:11:09 +02:00
Antoine Rey
735fb1149b
Remove explicit unboxing
2015-06-17 21:07:10 +02:00
michaelisvy
dc0fb9abd8
removing unused method #85
2015-06-17 13:10:00 -05:00
Antoine Rey
5570366cfd
Use a simple RowMapper instead of a BeanPropertyRowMapper
2015-06-17 08:30:26 +02:00
michaelisvy
8d20340518
removed unused attribute #64
2015-06-09 17:14:53 +08:00
Antoine Rey
fb64465802
Add some javadoc
2015-06-09 08:40:49 +02:00
Antoine Rey
818529b5b1
#64 Remove N+1 select by using the OneToManyResultSetExtractor of Spring Data Core JDBC Extensions
2015-06-09 08:37:20 +02:00
michaelisvy
72dc0c882f
Merge pull request #48 from 7footmoustache/patch-1
...
Fixed some typos in comments
2015-05-20 23:28:00 +08:00
michaelisvy
c8e360298b
fixed bug: vets.html did not display properly
2015-05-13 01:07:46 +09:00
michaelisvy
80c1d243a1
Removed RSS/rome and added JSon
...
RSS is becoming outdated, JSon is a better example
2015-05-12 19:07:35 +08:00
michaelisvy
38a5b28e29
Improving/fixing comments
2015-04-14 09:27:41 +08:00
michaelisvy
cc4ae966c6
removed deprecated Mapper in Jdbc
2015-01-21 18:22:46 +08:00