Schema validation fails when materialized view is involved

Description

When some entity or association is mapped against materialized view and schema validation is enabled (hibernate.hbm2ddl.auto=validate is set to true), then schema validation fails.

Environment

PostgreSQL

Activity

Show:
Steve Ebersole
May 6, 2016, 9:29 PM

Thanks Bruno. If I don't hear back from Dionis, I will apply that change

Steve Ebersole
May 6, 2016, 9:30 PM

To be clear, using that setting here should be viewed as a workaround.

BrunoL
May 9, 2016, 12:14 PM

Steve, I do think that using the setting is a workaround. I think that the default for the Postgres dialect should be use tables, views and materialized views, without any setting. I liked the PR, but I agree with you, it should be more flexible to augment the types filter list. I do hope we find a good solution to this matter.

Steve Ebersole
May 9, 2016, 1:05 PM

I already coded the "better" solution: https://github.com/sebersole/hibernate-core/tree/HHH-9602

Was just waiting to see if we heard back from

Dionis Argiri
May 10, 2016, 5:03 AM

Hello, everyone. I like Steve's Solution. It's more generic than mine. So +1 for it.

Assignee

Steve Ebersole

Reporter

Dionis Argiri

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure