Issues
- hibernate.hbm2ddl.auto=update stopped working in Oracle since 5.1.4HHH-12059Resolved issue: HHH-12059Andrea Boriero
- Problem with ActionQueue#InsertActionSorter throws FK exceptionHHH-11939Resolved issue: HHH-11939
- Stabilize "empty composites" featureHHH-11936Resolved issue: HHH-11936Former user
- Log a warning and update documentation that enabling "empty" composites is an experimental featureHHH-11935Resolved issue: HHH-11935Former user
- Empty left join fetched collection is uninitialized when collection key is composite with hibernate.create_empty_composites.enabled=trueHHH-11928Resolved issue: HHH-11928Former user
- CascadeMergeToChildBeforeParentTest should not assume the persisted entity has the id with a value of 1HHH-11927Resolved issue: HHH-11927Vlad Mihalcea
- Empty embeddable is not instantiated with hibernate.create_empty_composites.enabled=true if it is contained within an embeddableHHH-11926Resolved issue: HHH-11926
- CascadeMergeToChildBeforeParentTest NullPointerException due to null object retreived from cluster MariaDBHHH-11925Resolved issue: HHH-11925Former user
- Entity with null many-to-one cannot be loaded when associated entity has composite ID with hibernate.create_empty_composites.enabled=trueHHH-11922Resolved issue: HHH-11922Former user
- Hibernate ActionQueue.sort() removes entities from insertion batchesHHH-11920Resolved issue: HHH-11920
- DatabaseMetaData#getIndexInfo can return column names enclosed in quotes on PostgresPlusHHH-11915Resolved issue: HHH-11915Former user
- SchemaUpdateTest fails on databases using case-insensitive identifiersHHH-11910Resolved issue: HHH-11910Former user
- AbstractLobTest Fails on SybaseHHH-11905Resolved issue: HHH-11905Jozef Cibik
- EnumExplicitTypeTest test assert fails on mariadb clustersHHH-11904Resolved issue: HHH-11904Jozef Cibik
- @OneToOne Derived ID is null when returned by query when bidirectionalHHH-11903Resolved issue: HHH-11903Former user
- Empty composite values with primitive or initialized attributes can never be equivalent to nullHHH-11898Resolved issue: HHH-11898Former user
- Hibernate does not ignore empty composite collection elementsHHH-11883Resolved issue: HHH-11883Former user
17 of 17
hibernate.hbm2ddl.auto=update stopped working in Oracle since 5.1.4
Fixed
Created October 24, 2017 at 10:31 AM
Updated March 20, 2018 at 3:21 AM
Resolved March 20, 2018 at 2:28 AM
Activity
Former userMarch 20, 2018 at 2:28 AM
Fixed in 5.1 branch as well.
Matteo SteccoliniOctober 25, 2017 at 10:16 AM
, I upgraded to 5.1.10 and set that config value, and it seems to create and apply ddl for single alterations again, like it did by default in 5.1.3 (I don't know if this is the same behaviour or something somewhat different).
Andrea BorieroOctober 25, 2017 at 9:13 AM
, I'm not sure I have to check also if the issue has been resolved in 5.2.
can you try to set the following config value
Thanks
Former userOctober 24, 2017 at 9:29 PM
, will the fix for this issue include a fix for HHH-12057?
I noticed that since version 5.1.4 the entities wouldn't be updated anymore (with hibernate.hbm2ddl.auto=update) when adding fields. It probably applies to Oracle and not to other database engines, because of HHH-11023.
I attach a test case which isn't exactly a test case, but you can see the difference between 5.1.3 and 5.1.4 in the logs and on the database.
It seems that entities are not updated but re-created instead (they exist and so re-creation fails):
Steps to reproduce
If using my test case (not really a test case), create an Oracle schema and change persistence.xml accordingly
Create an entity (for example IwillUpdate in my test case) with FIELD1.
Launch the entityManager (for example in the JPAUnitTestCase).
Verify that the table has been created with FIELD1
Add a FIELD2 in the entity
Launch the entityManager again
Verify that you have a ORA-00604 error in the log and that the table hasn't changed (no FIELD2)
change hibernate version to 5.1.3 in the pom.xml
Launch the entityManager again
Verify that no error is shown and that the table has been updated