My system still keeps an attribute of which i had edited the name.
I have an entity bean in which i had updated the name of the attribute, of type boolean. I had changed its name from "considered" to "usable". I changed also the name in all involved queries.
If i try to use an INSERT query (in which i previously had the attribute "considered", now having "usable" - with the proper boolean value set), using, so, the attribute "usable", the system raises the exception of missing default value for "considered":
"org.hibernate.engine.jdbc.spi.SqlExceptionHelper: Field 'considered' doesn't have a default value"
(it tells me "hey, you have not assigned a value to "considered"").
I have tried to perform the deployment of my app with the value of HBM2DDL.AUTO (the property in the persistence.xml file) set to "create-drop" (I got that with this value, when deploying the application the system deletes the data and the schema and then create it again - PLEASE, TELL ME IF I GOT IT WRONG). I had started with value="update" and kept working with this setting. Finally, the attribute "considered" does not get removed (i expect it to get removed - i am no longer using it!).
So, i cannot perform INSERT queries because of an attribute that i tried to remove - replacing it with another one - that i don't use anymore, but that is still "alive" in the system.
I hope i have described well my issue.
Could anyone help me? Thanks.