# HHH000342: Hibernate 5.4.5 with DB2390 on z/OS

**URL:** <https://discourse.hibernate.org/t/hhh000342-hibernate-5-4-5-with-db2390-on-z-os/3280>\
**Category:** Hibernate ORM\
**Created:** [September 25, 2019, 11:09am UTC](https://discourse.hibernate.org/t/hhh000342-hibernate-5-4-5-with-db2390-on-z-os/3280 "2019-09-25T11:09:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tristar](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tristar](https://discourse.hibernate.org/u/tristar)\
**Post date:** [September 25, 2019, 11:09am UTC](https://discourse.hibernate.org/t/hhh000342-hibernate-5-4-5-with-db2390-on-z-os/3280/1 "2019-09-25T11:09:57Z")

</div>

Hi,

I try to migrate our application from Hibernate 5.3.4 to 5.4.5.  
We use DB2390 on z/OS. So I configured DB2390V8Dialect as before.

With Hibernate 5.4.5, this warning is logged on startup:  
WARN org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator - HHH000342: Could not obtain connection to query metadata : Name cannot be null

After some debugging I think the reason is the implementation of SequenceInformationExtractorDB2DatabaseImpl:

```
 protected String sequenceNameColumn() {
	return "seqname";
}

protected String sequenceSchemaColumn() {
	return "seqschema";
}

```

maybe should be replaced with

```
protected String sequenceNameColumn() {
	return "name";
}

protected String sequenceSchemaColumn() {
	return "schema";
}

```

All these four columns exist in SYSIBM.SYSSEQUENCES, but at least in my case only “name” and “schema” are always filled, the other two only when an alias for a sequence is created (the “name of the target sequence”)?

See also [https://www.ibm.com/support/knowledgecenter/en/SSEPEK\_12.0.0/cattab/src/tpc/db2z\_sysibmsyssequencestable.html](https://www.ibm.com/support/knowledgecenter/en/SSEPEK_12.0.0/cattab/src/tpc/db2z_sysibmsyssequencestable.html)
