shogun-legacy icon indicating copy to clipboard operation
shogun-legacy copied to clipboard

Adapt column name for MS SQLServer compatibility

Open buehner opened this issue 10 years ago • 3 comments

KEY seems to be a reserved word in SQLServer, so hibernate could not create the schema correctly.

Please review and merge!

buehner avatar Jul 30 '14 13:07 buehner

Hi @buehner , since this only changes the DB itself and it does not affect any other components becuse of the mapping feel free to merge! Thank you!

chrismayer avatar Jul 30 '14 15:07 chrismayer

What does this mean if someone updated an existing SHOGun to use this new mapping?

Will hbm2ddl=UPDATE work and rename the column? I am unsure about whether we want to merge this.

marcjansen avatar Jul 30 '14 15:07 marcjansen

Oh yes, @marcjansen good point, haven't thought about this. I am also unsure if hbm2ddl=UPDATE will do the stuff for you. Maybe we need a kind of update strategy or a kind of mapping so both column names can work (did not investigate if there is something offering such a mapping)

chrismayer avatar Jul 30 '14 15:07 chrismayer