Archimedes Trajano (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNDIzNDkxYTI1...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-17062?atlOrigin=eyJpIjoiNDIzND...
) HHH-17062 (
https://hibernate.atlassian.net/browse/HHH-17062?atlOrigin=eyJpIjoiNDIzND...
) When hibernate.ddl-auto is update, it keeps on altering MEDIUMTEXT and Date and DateTime
defintions (
https://hibernate.atlassian.net/browse/HHH-17062?atlOrigin=eyJpIjoiNDIzND...
)
Change By: Archimedes Trajano (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Given
{noformat}@Column(columnDefinition = "mediumtext"){noformat}
I keep on seeing the following in the {{org.hibernate.SQL}} logs. Even if it is
{{mediumtext}} already. I also tried {{MEDIUMTEXT}} and it yields a similar message
{noformat}alter table my_temporal_attribute modify column
attribute_value mediumtext{noformat}
The pattern is similar to the following:
{noformat}@Column(columnDefinition = "date", nullable = false, updatable =
false)
alter table my_temporal_attribute modify column effective_on date not null
@Column(columnDefinition = "datetime(0)")
alter table my_temporal_entity modify column created_on datetime(0){noformat}
Now what I noticed was there’s a space before the type in the log message. Not sure if it
is a generation error or maybe there’s a space when the type was computed resulting in it
not matching.
(
https://hibernate.atlassian.net/browse/HHH-17062#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-17062#add-comment?atlOrigin=ey...
)
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....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100234- sha1:90f5128 )