Guest User

Untitled

a guest
Feb 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. @Autowired
  2. KundeRepository repo;
  3.  
  4. public void safe(Kunde kd) {
  5. repo.save(kd);
  6. }
  7. public void safeAll(Iterable<Kunde> kt) {
  8. repo.save(kt);
  9. repo.flush();
  10. }
  11.  
  12. public class account implements Serializable {
  13.  
  14. private static final long serialVersionUID = 1L;
  15.  
  16. @Id
  17. @GeneratedValue(strategy = GenerationType.AUTO)
  18. private Long id;
  19. }
  20.  
  21. @Entity
  22. @Table(name = "kunde")
  23. @NoArgsConstructor
  24. public class Kunde implements Serializable {
  25.  
  26. public static final String kundennummerKey = "KUNDENNUMMER";
  27.  
  28. private static final long serialVersionUID = 1L;
  29.  
  30. @Id
  31. @Getter
  32. @Setter
  33. private String id;
  34.  
  35.  
  36. @Entity
  37. @Table(name = "transaktionsgruppe")
  38. public class Transaktionsgruppe implements Serializable {
  39.  
  40.  
  41. @Id
  42. @GeneratedValue(strategy = GenerationType.AUTO)
  43. private Long id;
  44.  
  45. private String bezeichnung;
  46.  
  47. datasource:
  48. type: com.zaxxer.hikari.HikariDataSource
  49. url: dburl
  50. username: user
  51. password: pw
  52. hikari:
  53. validation-timeout: 10000
  54. health-check-properties: {"connectivityCheckTimeoutMs","1000"}
  55. jpa:
  56. show-sql: true
  57. properties:
  58. hibernate.cache.use_second_level_cache: false
  59. hibernate.cache.use_query_cache: false
  60. hibernate.generate_statistics: false
  61. hibernate.jdbc.batch.size: 100
  62. hibernate.order_inserts: true
Add Comment
Please, Sign In to add comment