Преглед на файлове

updates to trying to get data to populate on startup

Lauren Green преди 5 години
родител
ревизия
278e7a96f2

+ 5
- 2
src/main/resources/config/application-dev.yml Целия файл

@@ -43,15 +43,16 @@ spring:
43 43
         serialization:
44 44
             indent-output: true
45 45
     datasource:
46
-        type: com.zaxxer.hikari.HikariDataSource
46
+#        type: com.zaxxer.hikari.HikariDataSource
47 47
         url: jdbc:h2:mem:zipconnect;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
48 48
         username: ZipConnect
49 49
         password:
50 50
         hikari:
51 51
             auto-commit: false
52
+        platform: h2
52 53
     h2:
53 54
         console:
54
-            enabled: false
55
+            enabled: true
55 56
     jpa:
56 57
         database-platform: io.github.jhipster.domain.util.FixedH2Dialect
57 58
         database: H2
@@ -66,6 +67,8 @@ spring:
66 67
             hibernate.cache.hazelcast.instance_name: ZipConnect
67 68
             hibernate.cache.use_minimal_puts: true
68 69
             hibernate.cache.hazelcast.use_lite_member: true
70
+        hibernate:
71
+            ddl-auto: create-drop
69 72
     liquibase:
70 73
         contexts: dev
71 74
     mail:

+ 1
- 1
src/main/resources/config/application.yml Целия файл

@@ -66,7 +66,7 @@ spring:
66 66
         properties:
67 67
             hibernate.jdbc.time_zone: UTC
68 68
         hibernate:
69
-            ddl-auto: none
69
+            ddl-auto: create-drop
70 70
             naming:
71 71
                 physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
72 72
                 implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy

src/main/resources/data.sql → src/main/resources/data-h2.sql Целия файл

@@ -283,3 +283,13 @@ insert into PUBLIC.USER_PROFILE (first_name, last_name, user_stack, user_id, emp
283 283
 insert into PUBLIC.USER_PROFILE (first_name, last_name, user_stack, user_id, employer_id, cohort_id) values ('Claudian', 'Lynock', 'Python', 10, 4, 3);
284 284
 insert into PUBLIC.USER_PROFILE (first_name, last_name, user_stack, user_id, employer_id, cohort_id) values ('Karney', 'Bantham', 'JavaScript', 29, 7, 9);
285 285
 
286
+insert into PUBLIC.COHORT (id, grad_date) values (1, '3/19/2016');
287
+insert into PUBLIC.COHORT (id, grad_date) values (2, '8/18/2018');
288
+insert into PUBLIC.COHORT (id, grad_date) values (3, '11/23/2015');
289
+insert into PUBLIC.COHORT (id, grad_date) values (4, '4/23/2016');
290
+insert into PUBLIC.COHORT (id, grad_date) values (5, '8/10/2017');
291
+insert into PUBLIC.COHORT (id, grad_date) values (6, '12/7/2018');
292
+insert into PUBLIC.COHORT (id, grad_date) values (7, '10/18/2016');
293
+insert into PUBLIC.COHORT (id, grad_date) values (8, '1/14/2015');
294
+insert into PUBLIC.COHORT (id, grad_date) values (9, '3/20/2016');
295
+insert into PUBLIC.COHORT (id, grad_date) values (10, '2/20/2015');

+ 3
- 0
src/main/webapp/app/newsfeed/newsfeed.component.html Целия файл

@@ -0,0 +1,3 @@
1
+<p>
2
+  newsfeed works!
3
+</p>

+ 12
- 0
src/main/webapp/app/newsfeed/newsfeed.component.ts Целия файл

@@ -0,0 +1,12 @@
1
+import { Component, OnInit } from '@angular/core';
2
+
3
+@Component({
4
+    selector: 'jhi-newsfeed',
5
+    templateUrl: './newsfeed.component.html',
6
+    styles: []
7
+})
8
+export class NewsfeedComponent implements OnInit {
9
+    constructor() {}
10
+
11
+    ngOnInit() {}
12
+}

+ 3
- 0
src/main/webapp/app/timeline/timeline.component.html Целия файл

@@ -0,0 +1,3 @@
1
+<p>
2
+  timeline works!
3
+</p>

+ 12
- 0
src/main/webapp/app/timeline/timeline.component.ts Целия файл

@@ -0,0 +1,12 @@
1
+import { Component, OnInit } from '@angular/core';
2
+
3
+@Component({
4
+    selector: 'jhi-timeline',
5
+    templateUrl: './timeline.component.html',
6
+    styles: []
7
+})
8
+export class TimelineComponent implements OnInit {
9
+    constructor() {}
10
+
11
+    ngOnInit() {}
12
+}