2022-05-03 15:20:46.677 INFO 12656 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
15:20:44.372 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@2bd5fb68
. __ _ __ _ _
/\ / _'_ _ _ _()_ _ __ _ \ \ \ ( ( )___ | ' | '| | ' / ` | \ \ \ \/ ___)| |)| | | | | || (| | ) ) ) )
' |__| .|| ||_| |_, | / / / /
=========||==============|__/=////
:: Spring Boot :: (v2.6.6)
2022-05-03 15:20:44.965 INFO 12656 --- [ restartedMain] br.com.alura.forum.ForumApplication : Starting ForumApplication using Java 18 on NB110112 with PID 12656 (C:\Users\joao.pereira\Documents\forum\forum\target\classes started by joao.pereira in c:\Users\joao.pereira\Documents\forum\forum)
2022-05-03 15:20:44.967 INFO 12656 --- [ restartedMain] br.com.alura.forum.ForumApplication : No active profile set, falling back to 1 default profile: "default"
2022-05-03 15:20:45.149 INFO 12656 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2022-05-03 15:20:45.149 INFO 12656 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2022-05-03 15:20:46.793 INFO 12656 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 95 ms. Found 3 JPA repository interfaces.
2022-05-03 15:20:48.291 INFO 12656 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2022-05-03 15:20:48.308 INFO 12656 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-05-03 15:20:48.309 INFO 12656 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.60]
2022-05-03 15:20:48.500 INFO 12656 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-05-03 15:20:48.500 INFO 12656 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3349 ms
2022-05-03 15:20:48.618 INFO 12656 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2022-05-03 15:20:48.873 INFO 12656 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2022-05-03 15:20:48.902 INFO 12656 --- [ restartedMain] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:alura-forum'
2022-05-03 15:20:49.180 INFO 12656 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2022-05-03 15:20:49.318 INFO 12656 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.6.7.Final
2022-05-03 15:20:49.595 INFO 12656 --- [ restartedMain] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2022-05-03 15:20:49.812 INFO 12656 --- [ restartedMain] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
Hibernate:
create table curso (
id bigint generated by default as identity,
categoria varchar(255),
nome varchar(255),
primary key (id)
)
Hibernate:
create table perfil (
id bigint generated by default as identity,
nome varchar(255),
primary key (id)
)
Hibernate:create table resposta (
id bigint generated by default as identity,
data_criacao timestamp,
mensagem varchar(255),
solucao boolean,
autor_id bigint,
topico_id bigint,
primary key (id)
)
Hibernate:
create table topico (
id bigint generated by default as identity,
data_criacao timestamp,
mensagem varchar(255),
status varchar(255),
titulo varchar(255),
autor_id bigint,
curso_id bigint,
primary key (id)
)
Hibernate:
create table usuario (
id bigint generated by default as identity,
email varchar(255),
nome varchar(255),
senha varchar(255),
primary key (id)
)
Hibernate:
create table usuario_perfis (
usuario_id bigint not null,
perfis_id bigint not null
)