Commit graph

435 commits

Author SHA1 Message Date
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
98d9bbb629 Removing reference to the unknown UserResource class 2015-06-24 18:43:45 +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
ca3bb07fa4 Remove unused WebApplicationContext property 2015-06-18 18:29:49 +02:00
Antoine Rey
1b4d4256c4 Fix typo into javadoc 2015-06-18 18:28:31 +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
cb6bd875de Putting encoding filter first per #80 2015-05-29 15:20:10 +08: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
83301cb602 Centering content 2015-05-20 23:21:37 +08:00
michaelisvy
54b7d87ff2 Fixing log back warning per #59 2015-05-20 23:18:19 +08:00
michaelisvy
c00d1abf23 Merge pull request #72 from ka2m/master
Update JDBC file naming in MySQL setup instruction
2015-05-20 23:14:45 +08:00
michaelisvy
c553d39f8d Merge pull request #67 from mklose/patch-1
fix typo
2015-05-20 23:13:04 +08:00
michaelisvy
c8e360298b fixed bug: vets.html did not display properly 2015-05-13 01:07:46 +09:00
michaelisvy
91ed548481 removing xdd version number
so we always use the latest in the classpath
2015-05-12 19:55:15 +08:00
michaelisvy
4c859ed512 minor update on comment 2015-05-12 19:52:00 +08: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
9914056a81 removing test that causes lots if issues
Happens since introduction of new mvc namespace tag for
content-negotiation
2015-05-10 06:45:39 +08:00
michaelisvy
694390d0c2 migrated assertion to assertJ 2015-05-10 06:33:10 +08:00
Vlad Selpukhin
099b848b62 Update JDBC file naming in MySQL steup instruction 2015-04-23 15:43:48 +03:00
michaelisvy
38a5b28e29 Improving/fixing comments 2015-04-14 09:27:41 +08:00
mklose
3f2d3ba72a fix typo 2015-04-01 16:39:51 +02:00
michaelisvy
cc4ae966c6 removed deprecated Mapper in Jdbc 2015-01-21 18:22:46 +08:00
michaelisvy
d8a2b5c737 cleanup on tests 2015-01-20 22:25:24 +08:00
michaelisvy
1dfc3b7a3a Migrated test assertions to AssertJ 2015-01-20 22:02:34 +08:00
michaelisvy
35a179f88b latest versions and imports cleanup 2015-01-20 21:21:27 +08:00
michaelisvy
3e4512781e Sonar review: made code more readable 2015-01-16 09:25:36 +08:00
michaelisvy
1c9b401248 cleaned up if statement in controller 2015-01-16 09:22:40 +08:00
michaelisvy
5c9ab6bd06 test methods:used should/shouldNot 2015-01-16 09:08:22 +08:00
michaelisvy
7080682d3e workaround because there seems to be a conflict
There seems to be a conflict between the following:

1) New MVC namespace syntax:
<mvc:content-negotiation use-not-acceptable="true">
	    	<mvc:default-views>
	      		<bean class="org.springframework.web.servlet.view.JstlView">
	      			<property name="url" value="" />
	      		</bean>
	    	</mvc:default-views>
	  	</mvc:content-negotiation>

2) Inside my Unit test:
ResultActions actions =
this.mockMvc.perform(get("/vets.xml").accept(MediaType.TEXT_XML));
        actions.andDo(print()); // action is logged into the console

        actions.andExpect(status().isOk());
2014-12-05 13:41:55 +08:00
michaelisvy
d7b100f90d Removed 'Help' from menu
We were planning to create a ‘help’ but it never happened
2014-11-28 13:54:31 +09:00
michaelisvy
49c39b65dc renamed headTag.jsp -> staticFiles.jsp 2014-11-28 13:52:09 +09:00
michaelisvy
85c8237fb5 added comment on <mvc:default-servlet-handler /> 2014-11-28 13:40:46 +09:00
michaelisvy
6e079b23bb Error control on description was missing
Took that opportunity to use custom tag (14 lines versus 2 lines)
2014-11-28 13:25:17 +09:00
michaelisvy
f0bf692767 Moving "visit" object to request scope
Previously was in session scope (doesn’t scale as well)
2014-11-28 13:19:25 +09:00
michaelisvy
92e7ab43be Simplified ContentNegoViewResolver config
- Now using namespace, much simpler (11 lines instead of 27)
- Just a minor issue with:
<bean class="org.springframework.web.servlet.view.JstlView">
	<property name="url" value="" />
</bean>
(should investigate later if we can remove “url” attribute
2014-11-28 12:45:57 +09:00
michaelisvy
475f5f5349 migrated to Spring 4.1.1.RELEASE
Also had to make changes because Spring now uses com.rometools for RSS
feeds
See here for more details: https://jira.spring.io/browse/SPR-11893
2014-10-18 23:36:15 +08:00
michaelisvy
74f683aaa9 Fixed typo 2014-10-18 22:13:01 +08:00
Craig Dennis
de73bdce6b Fixed some typos in comments 2014-07-07 21:19:40 -07:00
michaelisvy
ce50e80736 Merge pull request #42 from bram-atmire/documentation-fix
update db_readme.txt to reflect properties rename
2014-06-02 08:41:51 +08:00
Thibault Duchateau
e99c67a4bb Upgraded Dandelion-Datatables to the latest release (v0.10.0)
* The old datatables-servlet2 dependency has been removed from the pom.xml
 * Some attributes have been renamed (e.g. paginate => pageable)
 * Starting from the v0.10.0, all web components (servlet, filter) must be explicitely declared in the web.xml file. That's why I added the following declaration: DandelionFilter, DandelionServlet and DatatablesFilter
 * Added a new datatables.properties file in order to disable the asset management brought by Dandelion-Core. This is equivalent to the old cdn=true table attribute
2014-05-31 11:02:32 +02:00
Bram Luyten
1341c12d1f update db_readme.txt to reflect properties rename
jdbc.properties was renamed to data-access.properties, but this file still referred to the old name.
2014-05-11 18:37:42 +02:00
Mic
3f0bfbbdbe updates logo 2014-04-12 23:28:53 +08:00
Mic
622291aba7 Merge branch 'master' of https://github.com/SpringSource/spring-petclinic 2014-04-12 11:27:53 +08:00
michaelisvy
7dc6da25d8 Merge pull request #39 from arey/patch-1
Remove public to methods from the ClinicService
2014-04-12 11:27:32 +08:00
Mic
5e329e1766 Merge branch 'master' of https://github.com/SpringSource/spring-petclinic 2014-04-11 21:28:09 +08:00
Antoine Rey
67ae72f324 Remove public to methods from the ClinicService
Any method you define in an interface is by definition public
2014-03-23 17:43:58 +01:00
Mic
35a94eaa5d migrating to Spring 4.0.2 2014-03-03 21:24:29 +08:00
Antoine Rey
076a124e0a Fixes #37 with other default locale than english
Test in error with french default Locale:
org.junit.ComparisonFailure: expected:<[ne peut pas être vide]> but was:<[may not be empty]>
	at org.junit.Assert.assertEquals(Assert.java:115)
	at org.junit.Assert.assertEquals(Assert.java:144)
	at org.springframework.samples.petclinic.model.ValidatorTests.emptyFirstName(ValidatorTests.java:39)
2014-02-24 14:05:02 +01:00
Mic
08d84ed2b3 added comment for welcome file 2013-12-16 21:00:51 +09:00
Mic
5cfd482edc removed default profile and replaced with "jpa" 2013-12-16 20:58:15 +09:00
Mic
3e8829f372 adding explicit reference to default profile because it doesn't seem to work on on some environments 2013-12-13 08:15:10 +08:00
Mic
34d8ca46ac chaining validation so we can see multiple error messages when there are multiple validation errors 2013-11-06 09:18:33 +08:00
Mic
c4b9b0b119 migrated to the latest version of jquery and jquery-ui 2013-11-06 08:58:15 +08:00
Mic
b7764e39b2 Added comments to explain how database dialect is configured #33 2013-09-27 09:33:09 +08:00
Cyrille Le Clerc
e15e45b5e2 Spring MVC should server static resources (*.html, ...) located in src/main/webapp instead of returning "404 Not Found" 2013-08-10 19:49:01 +02:00
Mic
4c01d60b36 removing Serializable because it creates a lot of warnings
App should be as simple as possible for beginners
2013-07-25 16:35:37 +02:00
michaelisvy
6412e4805b Merge pull request #25 from boly38/patch-1
Update BaseEntity.java
2013-07-20 14:04:13 -07:00
boly38
e50583f58e Update BaseEntity.java
This fix the following error :

   "setAttribute: Non-serializable attribute owner"

In the following context :

  - hsql database configuration (updating data-access.properties only)

  - mvn clean install bees:run (cloudbees local run)
2013-07-12 10:22:38 +02:00
Cyrille Le Clerc
2eaf4983a1 Introduce a "jee" Spring profile to retrieve the datasource with a JNDI lookup. 2013-07-01 12:13:29 +02:00
Cyrille Le Clerc
8c5bbed6d0 Allow to override data-access.properties with System Properties 2013-06-28 11:32:04 +02:00
Mic
c13f141251 introducing a "default" profile so default configuration is simpler 2013-06-28 12:00:29 +08:00
Mic
a2a12c4d52 #18 Simplified Validator test so it doesn't have to use Spring config anymore 2013-06-14 09:39:46 +08:00
Mic
754e27c001 removing unneeded attribute name 2013-06-12 11:34:05 +08:00
Mic
7b8a9ec8bc #18 fixing error related to VisitsViewTests
- test didn't have the suffix "Tests" so it was not taken into account
when running Maven in the comand line
2013-06-08 21:17:35 +08:00
Mic
4f8063e9b8 #18 fixing 2 errors related to ValidatorTests
- test didn't have the suffix "Tests" so it was not taken into account
when running Maven in the comand line
- the POM was not configured so it can find Spring config files placed
inside src/test/java
2013-06-08 21:15:34 +08:00
Mic
eb8ba79ba1 moved cache config files to dedicated folder 2013-06-05 09:04:41 +08:00
Mic
d1cc655aae migrated from commons-dbcp to tomcat-jdbc 2013-06-05 08:59:59 +08:00
TejasM
f0b00da185 Select Tag to validate pet type 2013-05-27 14:28:24 -04:00
Mic
bca9c48e92 unused imports 2013-05-25 06:24:19 +08:00
Mic
2b0d07bbba moved from Model to Map so we do not use a Spring-specific class 2013-05-25 06:20:44 +08:00
Mic
6a1b4dd157 updated version of spring data and removed unused dependencies 2013-05-24 10:31:42 +08:00
Mic
840c0a417d fixing JPA query for Vets 2013-05-09 01:26:48 +08:00
Mic
5bf31dbe5a fixed JPA issue when updating existing owners/pets 2013-05-09 01:09:21 +08:00
Mic
80159fa3d7 fixed bug in JPA implementation: "save" methods were implemented using "merge" instead of "persist" 2013-05-07 10:54:35 +08:00
Mic
c88e3d462a added a JUnit test for Bean Validation 2013-05-03 10:36:54 +08:00
Mic
193e7583f1 added encoding configuration so people can enter Chinese characters inside all the forms. 2013-05-02 18:33:24 +08:00
Mic
a485521b6d changed file path. Thanks to @cmourouvin for letting me know. 2013-05-02 11:32:03 +08:00
Mic
993257f5a8 We're now able to use Spring Data there
see: https://jira.springsource.org/browse/DATAJPA-292
2013-04-18 10:10:16 +08:00
Mic
628e142708 fixing URL pattern issue 2013-04-05 10:01:47 +08:00
Mic
357ee0b78e did some cleaning on logging dependencies 2013-04-04 15:11:07 +08:00
Mic
ed226f70b5 fixing typo 2013-03-25 22:39:14 +11:00
Mic
6086dec5c3 updated copyright information 2013-03-20 15:33:29 +08:00
Mic
bb32cd842b adding HTML 5 doctype header 2013-03-18 21:37:01 +08:00
Mic
f1603221a2 Added comment because https://jira.springsource.org/browse/DATAJPA-292 has been resolved 2013-03-18 14:14:24 +08:00
Mic
fa1e1a8f86 isEnabled -> enabled 2013-03-15 16:36:26 +08:00
Mic
8e59a812e3 Integer Instantiation 2013-03-15 16:11:38 +08:00
Mic
c0d183ce3d removed lots of unused dependencies 2013-03-15 10:34:09 +08:00
Mic
024811d252 simplifying access to Integer 2013-03-14 18:04:36 +08:00
Mic
c4dbb1f648 added comment 2013-03-11 11:24:18 +08:00
Mic
96cd34dfd6 renamed jdbc.properties -> data-access.properties 2013-03-11 11:07:39 +08:00
Mic
3fe122db45 moved caching to the Service layer 2013-03-11 11:04:51 +08:00
Mic
e0ba8bfa74 organized imports 2013-03-11 09:22:58 +08:00
Mic
842f9ac9ec added comments about OSIV 2013-03-11 09:22:01 +08:00
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