Stacktrace: _java.lang.ClassCastException: org.jboss.jca.adapters.jdbc.jdk7.WrappedPreparedStatementJDK7 cannot be cast to java.sql.CallableStatement at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract(ResultSetReturnImpl.java:63) at org.hibernate.id.enhanced.SequenceStructure$1.getNextValue(SequenceStructure.java:96) at org.hibernate.id.enhanced.PooledOptimizer.generate(PooledOptimizer.java:73) at org.hibernate.id.enhanced.SequenceStyleGenerator.generate(SequenceStyleGenerator.java:412) at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:105) at org.hibernate.jpa.event.internal.core.JpaPersistEventListener.saveWithGeneratedId(JpaPersistEventListener.java:67) at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:189) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:132) at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:58) at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:757) at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:737) at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:742) at org.jboss.as.jpa.container.AbstractEntityManager.persist(AbstractEntityManager.java:580)_ |