Skip to content

Commit

Permalink
Introduced new "legacy" system to demonstrate how to configure multiple
Browse files Browse the repository at this point in the history
data sources with Spring and JPA.
  • Loading branch information
Matei1.Adrian authored and Matei1.Adrian committed Feb 24, 2014
1 parent ce08c80 commit f37d52d
Show file tree
Hide file tree
Showing 12 changed files with 514 additions and 253 deletions.
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
demo-restWS-spring-jersey-jpa2-hibernate
========================================
Prerequisites:
MySQL 5.5 or 5.6
Eclipse, JDK 1.7
--
- MySQL 5.5 or 5.6
- Eclipse
- JDK 1.7 (if you want to use Jetty 9 with the jetty-maven-plugin from project)

Install:
Create DB - https://github.com/amacoder/demo-restWS-spring-jersey-jpa2-hibernate/blob/master/src/main/resources/input_data/DumpRESTdemoDB.sql
Download the project
Import in Eclipse
Run Configuration -> Goals "clean install jetty:run"
Install
--
Create db schema by executing https://github.com/amacoder/demo-restWS-spring-jersey-jpa2-hibernate/blob/master/src/main/resources/input_data/DumpRESTdemoDB.sql against the MySQL database

Visit http://www.codingpedia.org/ama/java-persistence-example-with-spring-jpa2-and-hibernate/ for the explanation of the code
Run the example
--
- Download/clone the project
- Import in Eclipse
- Run Configuration -> Goals "clean install jetty:run"

Go to blog post
--
Visit
http://www.codingpedia.org/ama/java-persistence-example-with-spring-jpa2-and-hibernate/
for the explanation of the code
Loading

3 comments on commit f37d52d

@and1990
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey,man.i hava a question.There are two transactionManager,so how can i use it in service?please contact me

@adixchen
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@and1990
Copy link

@and1990 and1990 commented on f37d52d Apr 28, 2014 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.