Title:
Bug 79449:[JFERNANDES] ORM dbcreate = 'update' doesn't update table if we add a new fieldtype = ID
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): João Fernandes / João Fernandes (Joao Fernandes)
Created: 08/17/2009
Components: ORM Support
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
[JFERNANDES] ORM dbcreate = 'update' doesn't update table if we add a new fieldtype = ID. To workaround we have to drop the table and have it recreated by Hibernate. This should not be necessary.
Method:
Create a persistent CFC with 1 property of type id and another field with type of column.Set ormsettings.dbcreate = 'update' in Application.cfc have hibernate create the new tablechange the other field from column to id.reload hibernate (ormReload()) and check the db. the PK is still only in the first field.Delete the tablereload hibernate and check the db again. Now both fields are PK.
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3039681
External Customer Info:
External Company:
External Customer Name: João Fernandes
External Customer Email: 4E9A42C244586146992015D5
External Test Config: 08/17/2009
Attachments:
Comments: