Advertisement
Guest User

Untitled

a guest
Feb 7th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. @Repository
  2. public interface BookingRepository extends CrudRepository<Booking, Integer> {
  3.  
  4. }
  5.  
  6. public void process(Booking booking) throws IOException {
  7. bookingCreatedRepository.save(booking);
  8. log.info("After the save"); // this line is never reached
  9. }
  10.  
  11. spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
  12. spring.datasource.username=sa
  13. spring.datasource.password=Password12#
  14. spring.datasource.url=jdbc:sqlserver://localhost:1434;databaseName=Reporting
  15. spring.jpa.database=sql_server
  16. spring.jpa.show-sql=true
  17. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect
  18. spring.jpa.database-platform=SQL_SERVER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement