My table has one column with datatype as int but now I have decided to change it into float. so I changed my pojo from into to float . But i cannot see the changes in my table as it is still showing column with int dataype. How can i do this from my code.
Asked
Active
Viewed 58 times
0
-
please provide some of your current code – Nico T Aug 09 '16 at 13:14
-
Is the class you made the change in a POJO or a JPA Entity? How is the configuration in your `persistence.xml` for the property `hibernate.hbm2ddl.auto`? please add more Infos to your question to make it more clear. – A4L Aug 09 '16 at 13:17
-
I have changed into my POJO . I am new to java dont know much about this – Muddassir Rahman Aug 09 '16 at 13:27
-
I got this in my persistance.xml for the property hibernate.hbm2ddl.auto
– Muddassir Rahman Aug 09 '16 at 13:32 -
@ruhungry : not totally new. – Muddassir Rahman Aug 09 '16 at 13:34
-
to answer your question with the provided info, i would say the change you did will have no effect. Please add the code of the so called "POJO" to your question. And if you search a bit more for `hibernate.hbm2ddl.auto` you will find [this](http://stackoverflow.com/q/15978368/1113392) which most likely will explain the problem you are facing. – A4L Aug 09 '16 at 13:37
-
currently it is having value="update" – Muddassir Rahman Aug 09 '16 at 13:43
-
I am not getting why the schema is not updated . since i changed in POJO – Muddassir Rahman Aug 09 '16 at 13:48