인프런 커뮤니티 질문&답변

KwangMin Lee님의 프로필 이미지

작성한 질문수

실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발

테이블 생성문제

해결된 질문

작성

·

1.5K

0

안녕하세요 영한님. 강의 잘보고 있습니다!

다른 강의도 문제없이 잘 따라오다가

엔티티 클래스 개발2 강의에서 테이블 생성하는 문제에서 막히네요...

1. 우선 실행하였을때 에러없이 잘 실행은 되는데 DB에 테이블이 생성이 하나도 안되네요...

2020-12-04 02:51:32.403  INFO 14076 --- [  restartedMain] jpabook.jpashop.JpashopApplication       : Starting JpashopApplication on DESKTOP-HMU2A5E with PID 14076 (D:\IntelliJ\jpashop\out\production\classes started by Nick in D:\IntelliJ\jpashop)

2020-12-04 02:51:32.410  INFO 14076 --- [  restartedMain] jpabook.jpashop.JpashopApplication       : No active profile set, falling back to default profiles: default

2020-12-04 02:51:32.533  INFO 14076 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable

2020-12-04 02:51:32.533  INFO 14076 --- [  restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'

2020-12-04 02:51:34.043  INFO 14076 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFERRED mode.

2020-12-04 02:51:34.091  INFO 14076 --- [  restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 29ms. Found 0 JPA repository interfaces.

2020-12-04 02:51:36.691  INFO 14076 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)

2020-12-04 02:51:36.710  INFO 14076 --- [  restartedMain] o.apache.catalina.core.StandardService   : Starting service [Tomcat]

2020-12-04 02:51:36.710  INFO 14076 --- [  restartedMain] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.39]

2020-12-04 02:51:36.957  INFO 14076 --- [  restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext

2020-12-04 02:51:36.958  INFO 14076 --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 4424 ms

2020-12-04 02:51:37.251  INFO 14076 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...

2020-12-04 02:51:37.364  INFO 14076 --- [  restartedMain] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.

2020-12-04 02:51:37.383  INFO 14076 --- [  restartedMain] o.s.b.a.h2.H2ConsoleAutoConfiguration    : H2 console available at '/h2-console'. Database available at 'jdbc:h2:tcp://localhost/~/jpashop'

2020-12-04 02:51:37.562  INFO 14076 --- [  restartedMain] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'

2020-12-04 02:51:37.655  INFO 14076 --- [         task-1] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]

2020-12-04 02:51:37.756  WARN 14076 --- [  restartedMain] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning

2020-12-04 02:51:37.758  INFO 14076 --- [         task-1] org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.4.23.Final

2020-12-04 02:51:38.032  INFO 14076 --- [         task-1] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}

2020-12-04 02:51:38.061  INFO 14076 --- [  restartedMain] o.s.b.a.w.s.WelcomePageHandlerMapping    : Adding welcome page: class path resource [static/index.html]

2020-12-04 02:51:38.091 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration boolean -> org.hibernate.type.BooleanType@252b420a

2020-12-04 02:51:38.092 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration boolean -> org.hibernate.type.BooleanType@252b420a

2020-12-04 02:51:38.092 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Boolean -> org.hibernate.type.BooleanType@252b420a

2020-12-04 02:51:38.093 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration numeric_boolean -> org.hibernate.type.NumericBooleanType@4a7f1315

2020-12-04 02:51:38.094 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration true_false -> org.hibernate.type.TrueFalseType@295d0e48

2020-12-04 02:51:38.095 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration yes_no -> org.hibernate.type.YesNoType@565f49c6

2020-12-04 02:51:38.097 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration byte -> org.hibernate.type.ByteType@340ffe90

2020-12-04 02:51:38.097 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration byte -> org.hibernate.type.ByteType@340ffe90

2020-12-04 02:51:38.097 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Byte -> org.hibernate.type.ByteType@340ffe90

2020-12-04 02:51:38.099 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration character -> org.hibernate.type.CharacterType@433e1d56

2020-12-04 02:51:38.099 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration char -> org.hibernate.type.CharacterType@433e1d56

2020-12-04 02:51:38.099 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Character -> org.hibernate.type.CharacterType@433e1d56

2020-12-04 02:51:38.101 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration short -> org.hibernate.type.ShortType@14cb780

2020-12-04 02:51:38.101 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration short -> org.hibernate.type.ShortType@14cb780

2020-12-04 02:51:38.101 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Short -> org.hibernate.type.ShortType@14cb780

2020-12-04 02:51:38.103 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration integer -> org.hibernate.type.IntegerType@1a7ceee5

2020-12-04 02:51:38.103 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration int -> org.hibernate.type.IntegerType@1a7ceee5

2020-12-04 02:51:38.104 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Integer -> org.hibernate.type.IntegerType@1a7ceee5

2020-12-04 02:51:38.106 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration long -> org.hibernate.type.LongType@1ab5bca5

2020-12-04 02:51:38.106 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration long -> org.hibernate.type.LongType@1ab5bca5

2020-12-04 02:51:38.106 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Long -> org.hibernate.type.LongType@1ab5bca5

2020-12-04 02:51:38.108 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration float -> org.hibernate.type.FloatType@6f3e1eef

2020-12-04 02:51:38.108 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration float -> org.hibernate.type.FloatType@6f3e1eef

2020-12-04 02:51:38.108 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Float -> org.hibernate.type.FloatType@6f3e1eef

2020-12-04 02:51:38.111 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration double -> org.hibernate.type.DoubleType@1e2ddf54

2020-12-04 02:51:38.111 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration double -> org.hibernate.type.DoubleType@1e2ddf54

2020-12-04 02:51:38.111 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Double -> org.hibernate.type.DoubleType@1e2ddf54

2020-12-04 02:51:38.113 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration big_decimal -> org.hibernate.type.BigDecimalType@16b4e618

2020-12-04 02:51:38.114 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.math.BigDecimal -> org.hibernate.type.BigDecimalType@16b4e618

2020-12-04 02:51:38.115 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration big_integer -> org.hibernate.type.BigIntegerType@47d583a1

2020-12-04 02:51:38.116 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.math.BigInteger -> org.hibernate.type.BigIntegerType@47d583a1

2020-12-04 02:51:38.118 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration string -> org.hibernate.type.StringType@3335d1ed

2020-12-04 02:51:38.118 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.String -> org.hibernate.type.StringType@3335d1ed

2020-12-04 02:51:38.119 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration nstring -> org.hibernate.type.StringNVarcharType@15c9adf8

2020-12-04 02:51:38.120 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration ncharacter -> org.hibernate.type.CharacterNCharType@60679a15

2020-12-04 02:51:38.122 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration url -> org.hibernate.type.UrlType@27b358c9

2020-12-04 02:51:38.122 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.net.URL -> org.hibernate.type.UrlType@27b358c9

2020-12-04 02:51:38.123 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration Duration -> org.hibernate.type.DurationType@29449b8a

2020-12-04 02:51:38.124 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.Duration -> org.hibernate.type.DurationType@29449b8a

2020-12-04 02:51:38.127 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration Instant -> org.hibernate.type.InstantType@1f07e2b1

2020-12-04 02:51:38.127 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.Instant -> org.hibernate.type.InstantType@1f07e2b1

2020-12-04 02:51:38.129 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration LocalDateTime -> org.hibernate.type.LocalDateTimeType@2756c2bd

2020-12-04 02:51:38.129 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.LocalDateTime -> org.hibernate.type.LocalDateTimeType@2756c2bd

2020-12-04 02:51:38.131 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration LocalDate -> org.hibernate.type.LocalDateType@2a087b26

2020-12-04 02:51:38.131 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.LocalDate -> org.hibernate.type.LocalDateType@2a087b26

2020-12-04 02:51:38.133 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration LocalTime -> org.hibernate.type.LocalTimeType@9dd245b

2020-12-04 02:51:38.133 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.LocalTime -> org.hibernate.type.LocalTimeType@9dd245b

2020-12-04 02:51:38.135 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration OffsetDateTime -> org.hibernate.type.OffsetDateTimeType@59686eda

2020-12-04 02:51:38.135 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.OffsetDateTime -> org.hibernate.type.OffsetDateTimeType@59686eda

2020-12-04 02:51:38.137 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration OffsetTime -> org.hibernate.type.OffsetTimeType@29f67614

2020-12-04 02:51:38.137 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.OffsetTime -> org.hibernate.type.OffsetTimeType@29f67614

2020-12-04 02:51:38.140 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration ZonedDateTime -> org.hibernate.type.ZonedDateTimeType@4f73cfc2

2020-12-04 02:51:38.140 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.time.ZonedDateTime -> org.hibernate.type.ZonedDateTimeType@4f73cfc2

2020-12-04 02:51:38.142 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration date -> org.hibernate.type.DateType@496ab74c

2020-12-04 02:51:38.143 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.Date -> org.hibernate.type.DateType@496ab74c

2020-12-04 02:51:38.144 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration time -> org.hibernate.type.TimeType@4d7a7d20

2020-12-04 02:51:38.145 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.Time -> org.hibernate.type.TimeType@4d7a7d20

2020-12-04 02:51:38.146 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration timestamp -> org.hibernate.type.TimestampType@6b0a81e7

2020-12-04 02:51:38.146 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.Timestamp -> org.hibernate.type.TimestampType@6b0a81e7

2020-12-04 02:51:38.146 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.Date -> org.hibernate.type.TimestampType@6b0a81e7

2020-12-04 02:51:38.148 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration dbtimestamp -> org.hibernate.type.DbTimestampType@1045f033

2020-12-04 02:51:38.149 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration calendar -> org.hibernate.type.CalendarType@25ac74e5

2020-12-04 02:51:38.150 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.Calendar -> org.hibernate.type.CalendarType@25ac74e5

2020-12-04 02:51:38.150 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.GregorianCalendar -> org.hibernate.type.CalendarType@25ac74e5

2020-12-04 02:51:38.151 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration calendar_date -> org.hibernate.type.CalendarDateType@55ac9945

2020-12-04 02:51:38.152 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration calendar_time -> org.hibernate.type.CalendarTimeType@51da45f3

2020-12-04 02:51:38.153 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration locale -> org.hibernate.type.LocaleType@cd44b39

2020-12-04 02:51:38.154 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.Locale -> org.hibernate.type.LocaleType@cd44b39

2020-12-04 02:51:38.155 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration currency -> org.hibernate.type.CurrencyType@631b8dfd

2020-12-04 02:51:38.155 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.Currency -> org.hibernate.type.CurrencyType@631b8dfd

2020-12-04 02:51:38.156 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration timezone -> org.hibernate.type.TimeZoneType@3b28dca7

2020-12-04 02:51:38.156 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.TimeZone -> org.hibernate.type.TimeZoneType@3b28dca7

2020-12-04 02:51:38.157 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration class -> org.hibernate.type.ClassType@1dfd9c95

2020-12-04 02:51:38.158 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Class -> org.hibernate.type.ClassType@1dfd9c95

2020-12-04 02:51:38.159 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration uuid-binary -> org.hibernate.type.UUIDBinaryType@4fbf5668

2020-12-04 02:51:38.159 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.util.UUID -> org.hibernate.type.UUIDBinaryType@4fbf5668

2020-12-04 02:51:38.160 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration uuid-char -> org.hibernate.type.UUIDCharType@6c3b1dc5

2020-12-04 02:51:38.162 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration binary -> org.hibernate.type.BinaryType@1be9db8c

2020-12-04 02:51:38.162 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration byte[] -> org.hibernate.type.BinaryType@1be9db8c

2020-12-04 02:51:38.162 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration [B -> org.hibernate.type.BinaryType@1be9db8c

2020-12-04 02:51:38.163 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration wrapper-binary -> org.hibernate.type.WrapperBinaryType@1f46bea

2020-12-04 02:51:38.163 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration Byte[] -> org.hibernate.type.WrapperBinaryType@1f46bea

2020-12-04 02:51:38.163 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration [Ljava.lang.Byte; -> org.hibernate.type.WrapperBinaryType@1f46bea

2020-12-04 02:51:38.165 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration row_version -> org.hibernate.type.RowVersionType@4dce748a

2020-12-04 02:51:38.166 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration image -> org.hibernate.type.ImageType@72195a3c

2020-12-04 02:51:38.167 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration characters -> org.hibernate.type.CharArrayType@297eb17c

2020-12-04 02:51:38.167 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration char[] -> org.hibernate.type.CharArrayType@297eb17c

2020-12-04 02:51:38.167 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration [C -> org.hibernate.type.CharArrayType@297eb17c

2020-12-04 02:51:38.168 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration wrapper-characters -> org.hibernate.type.CharacterArrayType@420be748

2020-12-04 02:51:38.168 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration [Ljava.lang.Character; -> org.hibernate.type.CharacterArrayType@420be748

2020-12-04 02:51:38.168 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration Character[] -> org.hibernate.type.CharacterArrayType@420be748

2020-12-04 02:51:38.169 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration text -> org.hibernate.type.TextType@401cc50c

2020-12-04 02:51:38.170 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration ntext -> org.hibernate.type.NTextType@466a278b

2020-12-04 02:51:38.172 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration blob -> org.hibernate.type.BlobType@17807a1a

2020-12-04 02:51:38.172 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.Blob -> org.hibernate.type.BlobType@17807a1a

2020-12-04 02:51:38.173 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration materialized_blob -> org.hibernate.type.MaterializedBlobType@13289b57

2020-12-04 02:51:38.176 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration clob -> org.hibernate.type.ClobType@68732da1

2020-12-04 02:51:38.176 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.Clob -> org.hibernate.type.ClobType@68732da1

2020-12-04 02:51:38.178 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration nclob -> org.hibernate.type.NClobType@712ba8b2

2020-12-04 02:51:38.179 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.sql.NClob -> org.hibernate.type.NClobType@712ba8b2

2020-12-04 02:51:38.180 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration materialized_clob -> org.hibernate.type.MaterializedClobType@a0051f5

2020-12-04 02:51:38.180 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration materialized_nclob -> org.hibernate.type.MaterializedNClobType@17de6edd

2020-12-04 02:51:38.182 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration serializable -> org.hibernate.type.SerializableType@2184f9e2

2020-12-04 02:51:38.187 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration object -> org.hibernate.type.ObjectType@3d1603ae

2020-12-04 02:51:38.188 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration java.lang.Object -> org.hibernate.type.ObjectType@3d1603ae

2020-12-04 02:51:38.188 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_date -> org.hibernate.type.AdaptedImmutableType@310cc980

2020-12-04 02:51:38.189 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_time -> org.hibernate.type.AdaptedImmutableType@2650962

2020-12-04 02:51:38.189 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_timestamp -> org.hibernate.type.AdaptedImmutableType@46915d3e

2020-12-04 02:51:38.189 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_dbtimestamp -> org.hibernate.type.AdaptedImmutableType@2f44af66

2020-12-04 02:51:38.189 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_calendar -> org.hibernate.type.AdaptedImmutableType@785333c7

2020-12-04 02:51:38.189 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_calendar_date -> org.hibernate.type.AdaptedImmutableType@52d71bb6

2020-12-04 02:51:38.189 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_binary -> org.hibernate.type.AdaptedImmutableType@1ee3c47f

2020-12-04 02:51:38.189 DEBUG 14076 --- [         task-1] org.hibernate.type.BasicTypeRegistry     : Adding type registration imm_serializable -> org.hibernate.type.AdaptedImmutableType@1456675a

2020-12-04 02:51:38.351  INFO 14076 --- [         task-1] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect

2020-12-04 02:51:38.354  INFO 14076 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : LiveReload server is running on port 35729

2020-12-04 02:51:38.415  INFO 14076 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''

2020-12-04 02:51:38.418  INFO 14076 --- [  restartedMain] DeferredRepositoryInitializationListener : Triggering deferred initialization of Spring Data repositories…

2020-12-04 02:51:38.418  INFO 14076 --- [  restartedMain] DeferredRepositoryInitializationListener : Spring Data repositories initialized!

2020-12-04 02:51:38.433  INFO 14076 --- [  restartedMain] jpabook.jpashop.JpashopApplication       : Started JpashopApplication in 6.783 seconds (JVM running for 7.947)

2020-12-04 02:51:38.478 DEBUG 14076 --- [         task-1] o.h.type.spi.TypeConfiguration$Scope     : Scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration@211cc69a] to MetadataBuildingContext [org.hibernate.boot.internal.MetadataBuildingContextRootImpl@452480ad]

2020-12-04 02:51:38.749 DEBUG 14076 --- [         task-1] o.h.type.spi.TypeConfiguration$Scope     : Scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration@211cc69a] to SessionFactoryImpl [org.hibernate.internal.SessionFactoryImpl@4cd18d66]

2020-12-04 02:51:38.820  INFO 14076 --- [         task-1] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]

2020-12-04 02:51:38.832 TRACE 14076 --- [         task-1] o.h.type.spi.TypeConfiguration$Scope     : Handling #sessionFactoryCreated from [org.hibernate.internal.SessionFactoryImpl@4cd18d66] for TypeConfiguration

2020-12-04 02:51:38.837  INFO 14076 --- [         task-1] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'

----

에러 메세지 입니다.

2. 혹시나 해서 MemberRepositoryTest 도 실행시켜 보았는데 에러가 나서 테스트가 되질 않습니다.

org.springframework.dao.InvalidDataAccessApiUsageException: Unknown entity: jpabook.domain.Member; nested exception is java.lang.IllegalArgumentException: Unknown entity: jpabook.domain.Member

at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:374)

at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:257)

at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:528)

at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)

at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)

at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:154)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)

at jpabook.jpashop.MemberRepository$$EnhancerBySpringCGLIB$$a997d001.save(<generated>)

at jpabook.jpashop.MemberRepositoryTest.testMember(MemberRepositoryTest.java:25)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)

at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)

at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)

at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)

at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74)

at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84)

at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)

at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)

at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)

at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)

at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)

at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)

at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)

at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)

at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)

at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)

at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)

at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)

at org.junit.runners.ParentRunner.run(ParentRunner.java:413)

at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)

at org.junit.runner.JUnitCore.run(JUnitCore.java:137)

at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)

at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33)

at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220)

at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53)

Caused by: java.lang.IllegalArgumentException: Unknown entity: jpabook.domain.Member

at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:723)

at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:706)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:314)

at com.sun.proxy.$Proxy74.persist(Unknown Source)

at jpabook.jpashop.MemberRepository.save(MemberRepository.java:16)

at jpabook.jpashop.MemberRepository$$FastClassBySpringCGLIB$$a3e1a60b.invoke(<generated>)

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)

at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)

at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)

... 36 more

 

------------------------------

Unknown Entity 라면서 Member 클래스를 가르키는 것 같은데 틀린게 없어보여 어떤건지를 잘 모르겠어요..ㅜㅜ

여러 질문 답변도 검색해보고 yml 도 다시 써보고 해봤는데 왜그런지 모르겠네요 ㅜㅜ..

ㅜㅜ.. 고치려고 2시간째 고민하느라 다음강의를 못듣고 있네요 ㅜ.ㅜ...

읽어주셔서 감사합니다.

(혹시 소스도 올려서 보여드리고 싶은데 방법을 잘 모르겠네요..) 

답변 2

0

김영한님의 프로필 이미지
김영한
지식공유자

KwangMin Lee님 스스로 잘 해결하셨습니다.

@SpringBootApplication을 포함하는 하위 패키지를 자동으로 인식합니다^^

0

KwangMin Lee님의 프로필 이미지
KwangMin Lee
질문자

domain 패키지를 생성할때
jpabook.jpashop.domain 이 아닌

jpabook.domain 으로 생성해서 생긴 문제네요.. 

해결했습니다!!!!

다만, 스프링부트가 jpabook.jpashop 하위 부터 인식을 하는걸까요???

항상 좋은 강의 감사합니다.