Commit graph

435 commits

Author SHA1 Message Date
Mic
dd0eb5a55e improved/updated Javadoc in JUnit tests 2013-03-04 12:15:20 +08:00
Mic
46fa288388 fixing Spring config file naming issue in web.xml 2013-03-01 06:40:05 +08:00
Mic
bf41a4b4ed integrate dandelion config for Servlet 2 compatibility 2013-02-26 17:41:47 +08:00
Mic
95e8b64a5a merged pull request to integrate dandelion 2013-02-26 17:39:26 +08:00
Mic
faca0eb1c2 moved to tests to service level package 2013-02-26 17:38:06 +08:00
Mic
ebfa300f91 fixed issue with jqueryui path 2013-02-26 17:27:29 +08:00
Mic
d7f5cd17a5 renaming dao-config.xml -> business-config.xml 2013-02-26 17:25:31 +08:00
Mic
be403a3017 migrate all JUnit Integration tests from the repo layer to the service layer (step 1) 2013-02-26 17:20:55 +08:00
michaelisvy
3d9a37fe70 Merge pull request #3 from tduchateau/master
Added Dandelion-Datatables
2013-02-25 18:42:58 -08:00
Mic
82d6f5e870 Merge branch 'master' of https://github.com/SpringSource/spring-petclinic 2013-02-26 08:39:00 +08:00
Julien Dubois
d28f4e5257 Adding a DISTINCT clause so we only have users once 2013-02-25 22:40:24 +01:00
Julien Dubois
b3b536194a Transactions should be on the root application context (or Hibernate will not be able to persist entities) 2013-02-25 22:33:08 +01:00
Thibault Duchateau
65065a8979 Added compatibility with Servlet2.x containers 2013-02-24 21:36:36 +01:00
Thibault Duchateau
e44552ea4c Added Dandelion-Datatables
New dependencies added
Old tables replaced by Datatables using Dandelion-Datatables
2013-02-24 20:36:09 +01:00
Mic
223ca19736 adding a text file in case some people are confused about not finding Spring config files inside WEB-INF 2013-02-22 10:18:10 +08:00
Mic
9ee5e6f096 visit dates were not consistent 2013-02-21 14:50:00 +08:00
Mic
fde14bedb0 improved layout 2013-02-21 14:46:43 +08:00
Mic
70c046a927 Fixed test using Spring MVC Test framework 2013-02-21 14:27:13 +08:00
Mic
9cd3c9ef3d embedded server: moved from Jetty to Tomcat 2013-02-21 09:44:38 +08:00
Mic
9ba5811de3 Integrating Gordon's work
- integrated Gordon's comments in the POM
- removed antlr from the POM that we don't need anymore
- changed webjars versions inside headTag.jsp
2013-02-20 09:40:48 +08:00
Gordon Dickens
14f882221f file formatting and missing @Override on Java classes 2013-02-19 10:56:21 -05:00
Gordon Dickens
46260018d1 switched to modern logback for logging, see logback.xml and logback-test.xml for configuration 2013-02-19 10:44:33 -05:00
Gordon Dickens
cf9a540e94 more comments 2013-02-19 10:20:11 -05:00
Gordon Dickens
2c8f0351b1 Updated Project configuration for best practices 2013-02-19 10:00:14 -05:00
Mic
cec8110236 moved Spring config files and changed AtomView example so it is based on Vets instead of Visits 2013-02-19 16:36:23 +08:00
Mic
d92d53110b test doesn't run for now, disabling it until bug is solved 2013-02-16 03:27:43 +01:00
Mic
057015c14c Spring MVC Test Framework and migration to Spring 3.2.1
- migrated to Spring 3.2.1
- added hamcrest to the POM so it can be used with the Spring MVC Test
Framework
- Started migrating a JUnit test to Spring MVC Test Framework (at this
stage, it stills doesn't work. It could be because of a conflict with
ContentNegotiatingViewResolver)
2013-02-15 15:31:04 +08:00
Mic
e36bff7e7f removed unusued jpa configuration file (because Spring configuration doesn't rely on it) 2013-02-15 10:01:26 +08:00
Mic
ddbe4b5c14 renamed test packages so they are aligned with main packages 2013-02-15 09:58:19 +08:00
Mic
6a8edd99af removed unused AOP config 2013-02-15 09:54:15 +08:00
Mic
b2626bd509 reviewed Javadoc for abstract test classes 2013-02-15 09:53:47 +08:00
Mic
54a0186dd4 added Javadoc and licence info for jdbc implementation 2013-02-14 23:00:10 +08:00
Mic
790ebb5da0 improved javadoc for jpa implementation 2013-02-14 22:53:50 +08:00
Mic
a81b3330e3 added Javadoc comments for Spring Data JPA 2013-02-14 22:48:07 +08:00
Mic
d9cce68cff javadoc cleanup for repository interfaces 2013-02-14 22:34:35 +08:00
Mic
7a5af7a13b improved Javadoc comments and added licence info 2013-02-14 11:56:45 +08:00
Mic
254d05a008 minor issue in javadoc comment 2013-02-14 11:45:14 +08:00
Mic
ebe7551076 added exception stacktrace into an html comment 2013-02-14 11:18:30 +08:00
Mic
0c09ec3bd1 added @Cacheable support with ehcache 2013-02-14 11:12:36 +08:00
Mic
4ccf1eaa05 did some clean up for ViewResolvers configuration 2013-02-13 11:22:41 +08:00
Mic
c5ca72e80b made sure @Transactional is not set on the Repository layer 2013-02-13 09:37:42 +08:00
Mic
4e91b4468e removed TopLink-specific and Hibernate-specific properties 2013-02-13 09:29:18 +08:00
Mic
23314c5428 moved all model classes to a dedicated 'model' package 2013-02-13 08:06:37 +08:00
Mic
0a5ea0b5fb moved aspect to util package 2013-02-13 07:57:51 +08:00
Mic
e924e8737a moved Validator to the web package 2013-02-13 07:55:12 +08:00
Mic
539f7631a5 adding licence information to all files in the web layer 2013-02-12 22:51:51 +08:00
Mic
cd88b8caae Javadoc and xml documentation improvements 2013-02-12 09:12:51 +08:00
Mic
ed3df00bd7 Pets were getting old
Changed the birth date for all the pets (so we do not have a 12 year
old hamster where their life expectancy is 2-3 years :)  )
2013-02-12 08:29:13 +08:00
Mic
a994785f73 made sure the ClinicService facade is used by all Controllers 2013-02-12 08:22:39 +08:00
Rossen Stoyanchev
3e66379be1 Polish
Use ContentNegotiationManagerFactoryBean
Use URI variables in redirect URLs
2013-02-10 18:16:18 -05:00
Mic
572ef6e2c4 moved pointcut to @Repository instead of @Service
In that way we don't need a dedicated config file for the Service layer
2013-02-08 14:26:00 +08:00
Mic
5699bf83ee cleaned up AOP usage 2013-02-08 12:46:00 +08:00
Mic
0e60b03708 fixed naming issue in vet list 2013-02-07 10:31:18 +08:00
Mic
47ddd6f934 Fixed issue with Atom export 2013-02-07 10:08:53 +08:00
Mic
97e1890867 web config enhancements
- web.xml is now simpler
- mvc config file has been split into 2 files
2013-02-07 10:01:53 +08:00
Mic
5b8ef8ea10 replacing one Spring Data Repo with native JPA
see https://jira.springsource.org/browse/DATAJPA-292
2013-02-07 09:25:30 +08:00
Mic
8f531f366f added custom tag 2013-02-06 21:31:07 +08:00
Mic
07e535a75e fixed issue in the 'createVisit' form 2013-02-06 17:41:38 +08:00
Mic
57c9043121 fixed issues in the Pet creation form 2013-02-06 17:33:11 +08:00
Mic
6eae69719f improved pet creation form 2013-02-05 12:21:51 +08:00
Mic
ab5a3e29cb improve look and feel of the menu bar
- titles are now aligned
- text color now matches icons color
2013-02-05 09:58:42 +08:00
Mic
60cfb7fb37 fixed JDBC bug 2013-02-05 09:50:01 +08:00
Mic
ae9085de62 added CrashController to showcase behaviour when exception occurs 2013-02-05 09:49:33 +08:00
Mic
2df7267a48 updated a broken link and renamed script files for mysql 2013-02-01 09:40:23 +08:00
Mic
2ebf7567b9 packagesToScan doesn't need a list of values
(feedback from Oliver Gierke)
2013-02-01 09:29:20 +08:00
Mic
e97c9a45d4 removed Autowiring at the field level
(feedback from Oliver Gierke)
2013-02-01 09:28:58 +08:00
Mic
74eb3e72fe removing JdbcTemplate so we use NamedParameterJdbcTemplate solely when possible 2013-01-31 21:57:19 +08:00
Mic
f44e383462 fixed lazy loading issues
also renamed some local variables in Unit tests
2013-01-30 11:20:22 +08:00
Mic
56c7671939 webapp now using JPA by default 2013-01-30 11:19:48 +08:00
Mic
8b6cfab27d removing datasource declaration so we only rely on an internal database connection pool 2013-01-30 09:05:17 +08:00
Mic
e93f0f60a6 removing xml OR mapping so we only use annotations 2013-01-30 09:04:48 +08:00
Mic
3482d549ea renamed profiles and removed unnecessary@DirtiesContext annotation so the Test suite now runs in 40% less time 2013-01-29 17:47:45 +08:00
Mic
87e08f7b99 misc updates to tutorial page 2013-01-29 13:08:48 +08:00
Mic
4cd69795d2 removed unneeded declarations inside web.xml 2013-01-28 17:50:47 +04:00
Mic
0c2408390e removed appserver-specific files 2013-01-28 17:01:30 +04:00
Mic
feca50d272 added jQueryUI 2013-01-22 09:29:49 +01:00
Mic
95cb32d86d used tag c:out for EL to prevent HTML injection 2013-01-19 03:02:12 +08:00
Mic
d88b565d28 migrated all dates to joda time 2013-01-19 02:53:27 +08:00
Mic
c4b5a98ac8 navbar, reorganized JSP folders 2013-01-18 18:32:23 +08:00
Mic
f06cf8c3fa Improvements to layout 2013-01-18 17:17:40 +08:00
Mic
97aba3f4e6 added a Spring Data implementation
- there are now 3 data access implementations (jdbc, jpa and
spring-data-jpa)
- added corresponding bean profiles
- JUnit tests are now successful
2013-01-18 16:56:01 +08:00
Mic
c9c8c4e085 moved the ClinicRepository into some separate repos
There is still some polish up to be done.
2013-01-17 15:27:27 +08:00
Mic
16b1476c40 Simplified exception page handling
- so we don't use JSP scriptlets anymore
- Used input from http://www.thymeleaf.org/petclinic.html
- also some improvements to SimpleMappingExceptionResolver make it
easier to get the error message from the JSP
2013-01-16 12:46:23 +08:00
Mic
3d22e37944 improvements to Visit controller
- renamed
- migrated validation to bean validation
2013-01-16 11:07:39 +08:00
Mic
ece1a7a7ac fixing a RequestMapping issue
caused images not to be loaded
2013-01-16 11:02:37 +08:00
Mic
e9b6aff0d4 Merged Pet Controllers into a single one 2013-01-16 10:57:50 +08:00
Mic
0fe479390b improvements to Owner Controller
- migrated to bean validation annotations
- merged to one single controller
2013-01-16 10:30:20 +08:00
Mic
5432a1932c started adding support for Spring Data 2013-01-15 17:31:01 +08:00
Mic
df5c5ca59d gave more explicit names to JSPs 2013-01-15 10:57:36 +08:00
Mic
ffa0a6a1cf improved alignment in forms 2013-01-15 10:38:24 +08:00
Mic
6f7b42206e added .html extension for all JSP/html content 2013-01-15 09:42:45 +08:00
Mic
05c1110dce fixed content negotiation configuration 2013-01-15 09:29:01 +08:00
Mic
bfa4f85a83 removed source folder (not used anymore) 2013-01-14 23:44:06 +08:00
Mic
09c92b3072 general cleanup
- removed unneeded Spring config files
- moved i18n files to a dedicated folder
2013-01-14 23:43:13 +08:00
Mic
5c25ef9cc1 removed former Hibernate xml configuration 2013-01-14 23:40:25 +08:00
Mic
0c2665f1b4 added bean profiles for jdbc/jpa 2013-01-14 23:36:06 +08:00
Mic
b459ca3377 added aspectj decaration. All JUnit tests are now successful 2013-01-14 23:23:07 +08:00
Mic
608c42f74b migrated from SimpleJdbcTemplate to JdbcTemplate 2013-01-14 22:13:04 +08:00
Mic
4e35adb6b0 migrated to hsql 2.2.8 and fixed a couple of JPA issues 2013-01-14 16:55:09 +08:00
Mic
9f8acc05ad migration to JPA annotations
- added JPA annotations to POJO classes
- merged JPA Repos with Hibernate repos so we only use JPA
- renamed .txt files to .sql
- moved Spring configuration files so it is easier to use them inside
JUnit tests
2013-01-14 16:12:05 +08:00
Mic
099847cf49 Spring MVC config and layout in 'vets' section
- commented out all Spring MVC config related to content negociation so
the app works well in HTML for now
- Integrated Bootsrap look&Feel in the 'vets' section
2013-01-14 11:32:32 +08:00
Mic
9a77b56427 cleaned up CSS and migrated to Bootstrap 2013-01-14 11:02:08 +08:00
Mic
5139c8d3bc added header to all JSPs 2013-01-14 00:08:37 +08:00
Mic
58d82e461a handled all exception messages inside Spring config 2013-01-10 16:12:50 +08:00
Mic
aeeeace8a2 renaming controllers so they all have 'Controller' suffix 2013-01-09 21:37:28 +08:00
Mic
c690c9d05c removed static inclusion of jsp 2013-01-09 21:23:44 +08:00
Mic
87ccf9fea1 first step of migration to Spring 3.2 (still in process) 2013-01-09 17:24:48 +08:00
Rossen Stoyanchev
52d4b20d08 Apply patch from SPR-7894 2013-01-09 17:13:28 +08:00
Chris Beams
7cbfaf1726 Fix Petclinic case-sensitivity problems against MySQL (SPR-7512)
With thanks to Rob Winch for patch submission.
2013-01-09 17:13:28 +08:00
Costin Leau
0b9d98ba1c disable welcome files (for Servlet 3 compatibility) 2013-01-09 17:13:28 +08:00
Costin Leau
a7ae7df3a8 + upgrade to AJ 1.6.8
+ add dedicated section for Tomcat 5.5 and Tomcat 6 LTW setup (so it's clearer)
2013-01-09 17:13:27 +08:00
Costin Leau
1f59a262c3 + add comment about Tomcat 6 2013-01-09 17:13:26 +08:00
Keith Donald
bcda93f280 Slf4j update 2013-01-09 17:13:25 +08:00
Costin Leau
905d9824b0 + improved war structure 2013-01-09 17:13:24 +08:00
Keith Donald
31733db715 fixed test suite failing 2013-01-09 17:13:23 +08:00
Keith Donald
1b48694fd9 removed test suite class 2013-01-09 17:13:23 +08:00
Keith Donald
ef838ad656 Switched to embedded db 2013-01-09 17:13:23 +08:00
Keith Donald
3dc88e069a polish 2013-01-09 17:13:23 +08:00
Thomas Risberg
66dff752a4 added some extra space to avoid sponsored by SpringSource message being covered by the picture of the pets 2013-01-09 17:13:21 +08:00
Costin Leau
fa6fd105db SAMPLESPET-3
+ move spring application context files under a dedicated folder (to prevent JBoss XML parser from choking)
http://forum.springsource.org/showthread.php?t=68949
2013-01-09 17:13:21 +08:00
Costin Leau
dd521eb88a SAMPLESPET-3
+ renamed META-INF/persistence.xml to META-INF/jpa-persistence.xml since JBoss will scan it automatically
and complain about non-jta-resources declared.
2013-01-09 17:13:20 +08:00
Costin Leau
fe63e9c87f + add default servlet definition (for containers that do not declare it - such as GlassFish)
+ increase Spring version to RC3 (it works with trunk just fine)
2013-01-09 17:13:20 +08:00
Costin Leau
d8b7615705 SPR-6447
+ add missing datasource import to hibernate config
2013-01-09 17:13:20 +08:00
Costin Leau
93a378adde SPR-6447
+ fixed tab/spaces consistency
2013-01-09 17:13:20 +08:00
Costin Leau
6f056b5072 SPR-6447
+ removed unused script
2013-01-09 17:13:19 +08:00
Costin Leau
d6b57ac053 SPR-6447
+ improve mysql script to prevent data from being added if it's already present
2013-01-09 17:13:19 +08:00
Costin Leau
a8cc00689b SPR-6447
+ extracted datasource definition into a separate file to eliminate redundancy
+ introduce jdbc: namespace
2013-01-09 17:13:19 +08:00
Costin Leau
9617efef32 SPR-6447
+ improve DataSource setup
2013-01-09 17:13:18 +08:00
Costin Leau
19173a063e SPR-6447
+ improve DataSource setup
2013-01-09 17:13:18 +08:00
Costin Leau
c9c939de2a SPR-6447
+ add more clarifications
2013-01-09 17:13:18 +08:00
Costin Leau
d07705843c SPR-6447
+ moved JPA/AOP META-INF/ files into the webapp classpath
2013-01-09 17:13:18 +08:00
Costin Leau
8291c80122 SPR-6447
+ added on the fly db configuration to all contexts
+ removed schema numbers to always pick the latest version
2013-01-09 17:13:17 +08:00
Costin Leau
50b87ef75f SPR-6447
+ moved db files around
+ moved JPA/AOP META-INF/ files into the webapp classpath
2013-01-09 17:13:17 +08:00
Costin Leau
c0b90bf9ef SPR-6447
+ move jdbc scripts from META-INF into /resources
2013-01-09 17:13:17 +08:00
Costin Leau
521d01db95 SPR-6447
SPR-6448
+ commit the gross of the files
+ added maven pom
2013-01-09 17:13:17 +08:00