Hibernate trying to create table for the existing view and throws exception

Description

I have Spring Boot project using Hibernate version 5.4.12 version, which connected to SQL server database. In DB I have defined two types of views

  1. Views created using SQL database tables

  2. Views created using the Oracle database views(Connected through ODBC)

I am able to access data using from the views created using SQL server db tables. But the views are connected to Oracle database, I got an exception during the application start up

  • com.microsoft.sqlserver.jdbc.SQLServerException: There is already an object named 'disease_view' in the database.
    *
    However I am able to access data without any issues and I use *spring.jpa.hibernate.ddl-auto=update* property to generate tables automatically.

Exception:

Environment

Java 11 on macOS

Assignee

Unassigned

Reporter

Pavan Jadda

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure