[hibernate-issues] [JIRA] (HHH-14088) Schema validation fails with same name sequences in different schemas

Alex CD (JIRA) jira at hibernate.atlassian.net
Fri Jun 26 15:24:27 EDT 2020


Alex CD ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A9b0f6d49-bc76-4aca-875b-c8525b2f039d ) *commented* on HHH-14088 ( https://hibernate.atlassian.net/browse/HHH-14088?atlOrigin=eyJpIjoiNmZmMjA2NDg5N2U5NDkyZjllZjU3ZGYxY2IwOGQ5YjAiLCJwIjoiaiJ9 )

Re: Schema validation fails with same name sequences in different schemas ( https://hibernate.atlassian.net/browse/HHH-14088?atlOrigin=eyJpIjoiNmZmMjA2NDg5N2U5NDkyZjllZjU3ZGYxY2IwOGQ5YjAiLCJwIjoiaiJ9 )

Should database metadata contain all sequences from all schemas?

ExtractedDatabaseMetaData.getSequenceInformationList() contains all sequences and has one usage ( https://github.com/hibernate/hibernate-orm/blob/604b594226355dc789586c40f1eee241aca259b5/hibernate-core/src/main/java/org/hibernate/id/enhanced/SequenceStyleGenerator.java#L581-L583 ) where it filters the required schema (valid).

This may produce bugs in the futures if it is used in other locations without filtering the required schema.

( https://hibernate.atlassian.net/browse/HHH-14088#add-comment?atlOrigin=eyJpIjoiNmZmMjA2NDg5N2U5NDkyZjllZjU3ZGYxY2IwOGQ5YjAiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14088#add-comment?atlOrigin=eyJpIjoiNmZmMjA2NDg5N2U5NDkyZjllZjU3ZGYxY2IwOGQ5YjAiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100130- sha1:d095cd6 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200626/f42cd8dd/attachment.html 


More information about the hibernate-issues mailing list