From 11095e709d8f61a7ecf2793680785c9e20823302 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Tue, 10 Mar 2015 21:38:51 -0500 Subject: [PATCH] HHH-9044 - Create Oracle12cDialect --- .../java/org/hibernate/id/IdentifierGeneratorHelper.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java b/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java index 05b614a2ad..10e442e306 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java +++ b/hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java @@ -119,11 +119,13 @@ public final class IdentifierGeneratorHelper { } } int columnCount = 1; - try{ + try { columnCount = rs.getMetaData().getColumnCount(); - }catch(Exception e){ + } + catch(Exception e){ //Oracle driver will throw NPE } + Class clazz = type.getReturnedClass(); if (columnCount == 1) { if ( clazz == Long.class ) {