-
Notifications
You must be signed in to change notification settings - Fork 159
Implement support for hibernate timestamp columns with timezone #728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement support for hibernate timestamp columns with timezone #728
Conversation
I think it would be nice to at least add some basic unit test for this. Would you mind doing it? Thanks, |
Thank you for the feedback, I added a unit test and actually fixed a bug I noticed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you for adding a test for it and finding a bug.
A comment not related to this PR. I was thinking it would be nice to use Lombok
in this extension. It would be useful to make a bit less verbose all the entity classes. I'll create a a separate ticket for it.
Again, thank you for your contributions.
Daniel.
BTW, just to let you know, I created this enhancement #735 I mentioned I was going to create. Thanks, |
a34335b
to
c617c31
Compare
Hello guys, seems like this is breaking for oracle to have columndefinition as it is automatically converting And liquibase execution with oracle 19c is failing |
Seems like the issue is occuring due to this liquibase-hibernate/src/main/java/liquibase/ext/hibernate/snapshot/ColumnSnapshotGenerator.java Line 202 in 3e6cd8a
// If hibernateType ends with 'with time zone' we need to add the corresponding
// 'with timezone' suffix to the Liquibase type.
if (hibernateType.toLowerCase().endsWith(SQL_TIMEZONE_SUFFIX)) {
typeName += (" " + LIQUIBASE_TIMEZONE_SUFFIX);
} |
@siddharthapd, would you mind opening a new issue for that Oracle behavior that was broken with this PR? Then, our team can prioritize it. You are also more than welcome to submit a PR if you are keen to do it. Thanks, |
trying to understand the need for this. If you look at postgres we can simply use |
I will open new issue. |
Since version 5 or 6, Hibernate started adding the
with time zone
suffix to columns of certain types.This PR aims to correctly transfer the
with time zone
suffix from Hibernate to the corresponding Liquibase formatwith timezone
.