Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hibernate4 connection Metadata #34

Closed
kszosze opened this issue Jan 21, 2014 · 3 comments
Closed

Hibernate4 connection Metadata #34

kszosze opened this issue Jan 21, 2014 · 3 comments
Milestone

Comments

@kszosze
Copy link

kszosze commented Jan 21, 2014

Hi all!
I'm just starting a project with Maven+Spring+HIbernate+JPA+liquibase and want for a complete integration.

In my pom I'm using liquibase-maven-plugin 3.1.0, liquibase-hibernate4 3.2 and the latest core.

I've found when I run a liquibase:dif I got a NullPointerException at line 30 in liquibase.database.jvm.JdbcConnection.

I this place when attach the Database, add the SQLKeybwords to the ReservedWords obtained from the HibernateConnectionMetadata.. but the getSQLKeywords always will return null, it's hardcoded, so always will fail... isn't it?

The specific line is
database.addReservedWords(Arrays.asList(this.getWrappedConnection().getMetaData().getSQLKeywords().toUpperCase().split(",\s*")));

So.. I asked. there any work-arround, or planned to change this for new releases?
Thanks in advance!!

@reinierbos
Copy link

The same goes for liquibase-hibernate3 3.2. The workaround I found was to go back to liquibase-maven-plugin 3.0.8. In that version getSqlkeywords() is not yet used.

@ghost
Copy link

ghost commented Feb 11, 2014

Wouldn't HibernateConnectionMetadata.getSQLKeywords() returning "" instead of null do the trick?

@nvoxland
Copy link
Contributor

Fixed for version 3.3

@nvoxland nvoxland added this to the 3.3 milestone Feb 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants