Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. !import "common.groovy"
  2. !import "springboot.groovy"
  3. !import "postgres.groovy"
  4.  
  5. !merge "moreConfig.yaml" #!dominant
  6. !merge "moreConfig.yaml" #!submissive
  7.  
  8. springboot:
  9. - db: "postgres"
  10.  
  11. postgres:
  12. - production:
  13. - host: "database.example.com"
  14. - username: "username"
  15. - password: "password"
  16.  
  17. - staging:
  18. - host: "stagingdb.example.org"
  19. - username: "staging"
  20. - password: "changeme"
  21.  
  22. - development:
  23. - default: true
  24. - host: "localhost"
  25. - username: "clientdatabase"
  26. - password: "test"
  27.  
  28. api:
  29. - name: "ClientDatabase"
  30. - type: "springboot"
  31. - entities:
  32. - client:
  33. - id: "PK,AI"
  34.  
  35. - name:
  36. - type: "string"
  37. - length: 128
  38.  
  39. - wealth:
  40. - type: "long"
  41.  
  42. - households:
  43. - relation: "multi household"
  44.  
  45. - related:
  46. - relation: "multi client"
  47.  
  48. - household:
  49. - id: "PK,AI"
  50.  
  51. - address:
  52. - type: "string"
  53. - length: 256
  54.  
  55. - endpoints:
  56. - "household/calculate_price": ´sum(household.getClients()*.getWealth()) * 0.15´
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement