R
R
Rammstein0072021-02-08 23:27:00
Oracle
Rammstein007, 2021-02-08 23:27:00

Why does hibernate try to update oracle materialized view when select is requested?

There is a view in the database (create or replace force view x) when requesting select hibernate tries to update the view and crashes because there are no rights to update. How to make hibernate not try to update the view? stacktrace below

at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
            at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
            at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2222)
            at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2118)
            at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2374)
            at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:91)
            at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
            at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
            at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
            at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
            at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
            at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question