JHipster:向用户注册其他信息[帮助]

问题描述 投票:0回答:1

我一直在关注this guide尝试向用户添加信息,一切顺利,直到我到达将输入字段添加到register.component.html的那部分,当我添加ngModel指令时,页面停止工作,密码强度不再有效,当我尝试注册用户时,注册失败,出现以下错误:

2019-12-10 16:31:18.875 ERROR 912 --- [ XNIO-1 task-14] o.h.engine.jdbc.spi.SqlExceptionHelper   : Column "USEREXTRA0_.USER_ID" not found; SQL statement`select userextra0_.user_id as user_id8_25_, userextra0_.activo as activo1_25_, userextra0_.cod_p as cod_p2_25_, userextra0_.morada as morada3_25_, userextra0_.nif as nif4_25_, userextra0_.nome as nome5_25_, userextra0_.permiss_change as permiss_6_25_, userextra0_.telef as telef7_25_, userextra0_.user_permissions_id as user_per9_25_, userextra0_.user_profile_id as user_pr10_25_ from user_extra userextra0_ [42122-200]`
2019-12-10 16:31:18.876 ERROR 912 --- [ XNIO-1 task-14] dw.aop.logging.LoggingAspect             : Exception in dw.web.rest.UserExtraResource.getAllUserExtras() with cause = 'org.hibernate.exception.SQLGrammarException: could not prepare statement' and exception = 'could not prepare statement; SQL [select userextra0_.user_id as user_id8_25_, userextra0_.activo as activo1_25_, userextra0_.cod_p as cod_p2_25_, userextra0_.morada as morada3_25_, userextra0_.nif as nif4_25_, userextra0_.nome as nome5_25_, userextra0_.permiss_change as permiss_6_25_, userextra0_.telef as telef7_25_, userextra0_.user_permissions_id as user_per9_25_, userextra0_.user_profile_id as user_pr10_25_ from user_extra userextra0_]; nested exception is org.hibernate.exception.SQLGrammarException: could not prepare statement'
2019-12-10 16:31:18.878 ERROR 912 --- [ XNIO-1 task-14] o.z.problem.spring.common.AdviceTraits   : Internal Server Error

[当我尝试查看UserExtra实体时,出现内部服务器错误。

Here is my UserExtra table, I realize the ID field should be called User_Id but I did everything according to the guide and have no idea what went wrong

java angular spring jhipster
1个回答
0
投票

我建议您检查您的Liquibase脚本。该字段很可能未在用户额外的表定义中定义。

© www.soinside.com 2019 - 2024. All rights reserved.