Hibernate 5.6.15, compiling NewAnnotations.java
src/compat/NewAnnotations.java:1: error: cannot find symbol
import org.hibernate.annotations.JdbcTypeCode;
                                ^
  symbol:   class JdbcTypeCode
  location: package org.hibernate.annotations
src/compat/NewAnnotations.java:2: error: cannot find symbol
import org.hibernate.annotations.SQLRestriction;
                                ^
  symbol:   class SQLRestriction
  location: package org.hibernate.annotations
src/compat/NewAnnotations.java:3: error: cannot find symbol
import org.hibernate.type.SqlTypes;
                         ^
  symbol:   class SqlTypes
  location: package org.hibernate.type
src/compat/NewAnnotations.java:6: error: cannot find symbol
@SQLRestriction("deleted = false")
 ^
  symbol: class SQLRestriction
src/compat/NewAnnotations.java:9: error: cannot find symbol
    @JdbcTypeCode(SqlTypes.CHAR)
     ^
  symbol:   class JdbcTypeCode
  location: class NewAnnotations
src/compat/NewAnnotations.java:9: error: cannot find symbol
    @JdbcTypeCode(SqlTypes.CHAR)
                  ^
  symbol:   variable SqlTypes
  location: class NewAnnotations
6 errors
javac exit status: 1
