title: Connection error Hibernate + Firebird
body: <p>I'm trying to connect Hibernate to firebird database, but i receive the error bellow.</p>
  
  <p>My configuration in persistence.xml is:</p>
  
  <pre><code>    &lt;property name="hibernate.connection.url" value="jdbc:firebirdsql:localhost/3050:/database.FDB"/&gt;
      &lt;property name="hibernate.connection.driver_class" value="org.firebirdsql.jdbc.FBDriver"/&gt;
      &lt;property name="hibernate.connection.username" value="SYSDBA"/&gt;
      &lt;property name="hibernate.connection.password" value="masterkey"/&gt;
      &lt;property name="hibernate.archive.autodetection" value="class"/&gt;
  
      &lt;property name="hibernate.dialect" value="org.hibernate.dialect.FirebirdDialect"/&gt;
      &lt;property name="hibernate.show_sql" value="true"/&gt;
      &lt;property name="hibernate.format_sql" value="true"/&gt; 
      &lt;property name="hibernate.hbm2ddl.auto" value="update"/&gt;
  </code></pre>
  
  <p>In pom.xml is:</p>
  
  <pre><code> &lt;dependency&gt;
      &lt;groupId&gt;org.firebirdsql.jdbc&lt;/groupId&gt;
      &lt;artifactId&gt;jaybird-jdk18&lt;/artifactId&gt;
      &lt;version&gt;3.0.3&lt;/version&gt;
  &lt;/dependency&gt; 
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>INFO: HHH000412: Hibernate Core {5.2.6.Final}
  abr 12, 2018 1:52:25 PM org.hibernate.cfg.Environment &lt;clinit&gt;
  INFO: HHH000206: hibernate.properties not found
  abr 12, 2018 1:52:25 PM org.hibernate.annotations.common.reflection.java.JavaReflectionManager &lt;clinit&gt;
  INFO: HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
  abr 12, 2018 1:52:25 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
  WARN: HHH10001002: Using Hibernate built-in connection pool (not for production use!)
  abr 12, 2018 1:52:25 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
  INFO: HHH10001005: using driver [org.firebirdsql.jdbc.FBDriver] at URL [jdbc:firebirdsql:localhost/3050:/database.FDB]
  abr 12, 2018 1:52:25 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
  INFO: HHH10001001: Connection properties: {user=SYSDBA, password=****}
  abr 12, 2018 1:52:25 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
  INFO: HHH10001003: Autocommit mode: false
  abr 12, 2018 1:52:25 PM org.hibernate.engine.jdbc.connections.internal.PooledConnections &lt;init&gt;
  INFO: HHH000115: Hibernate connection pool size: 20 (min=1)
  abr 12, 2018 1:52:25 PM org.firebirdsql.logging.JulLogger warn
  ADVERTÊNCIA: WARNING: No connection character set specified (property lc_ctype, encoding, charSet or localEncoding), defaulting to character set NONE
  abr 12, 2018 1:52:30 PM org.apache.catalina.core.StandardWrapperValve invoke
  GRAVE: Servlet.service() for servlet [Servlet ComercialApp REST] in context with path [/webservice] threw exception [org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]] with root cause
  org.firebirdsql.jdbc.FBSQLExceptionInfo: Incompatible wire encryption levels requested on client and server
  </code></pre>