原因: java.sql.SQLSyntaxErrorException:
com.mysql.cj.jdbc.Exceptions.SQLError.createSQLException(SQLError.java:120)の 'フィールド リスト' の不明な列 'Teacher0_.staff_room'
(com.mysql.cj.jdbc ) .Exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953)
com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1009) )
com.alibaba.druid.pool.DruidPooledPreparedStatement.executeQuery(DruidPooledPreparedStatement.java:227)
org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:57) で
... 137 詳細
解決策: 属性の上に @Transient を追加します。
問題が解決しました