I have a situation where a table column may or may not exist. In short, we have an additional function that, if implemented, will be bound to a column in a table. If the client does not want to have this function, they will not have a column.
I am trying to define a property in my DAO for it, in the hope that Hibernate will not explode if there is no column there. Perhaps setting null . But Hibernate throws an "invalid id" exception.
Does anyone know if you can do this? Have a column mapping, if a column there Hibernate fills it, but if it is not present, is everything ok and is it just null ?
Thank you very much.
source share