Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #Data source properties
  2. spring.datasource.url = jdbc:postgresql://localhost:5432/Invoices
  3. spring.datasource.username = admin
  4. spring.datasource.password = admin
  5.  
  6. # Hibernate properties
  7. spring.jpa.show-sql = true
  8. #spring.jpa.hibernate.ddl-auto = none
  9. spring.jpa.hibernate.naming.implicit-strategy = org.hibernate.boot.model.naming.ImplicitNamingStrategyJpaCompliantImpl
  10. spring.jpa.properties.hibernate.format_sql=true
  11. spring.datasource.platform=postgresql
  12. spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
  13. spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
  14.  
  15.  
  16. ## queries
  17. spring.queries.users-query=select email, password, active from users where email=?
  18. spring.queries.roles-query=select u.email, r.role_name from users u inner join user_role ur on(u.user_id=ur.user_id) inner join roles r on(ur.role_id=r.id) where u.email=?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement