Krystian Kowalski wrote:Thanks for your answer, you made it more cleaner for me now
It looks way batter than writing all this things in Strings with jdbc.
Just 2 more questions :P :
1. When creating database, is there any "hibernate" way to do it automaticly ? Or we need to create database and after that create objects, map fields with columns etc ?
2. let's say i've made a table and i have an mapped object. I am doing some inserts, updates and everything is fine and after 1 month i've made a a lot of "querys" using that object in my project. I conclude that i have to add a column. Do i need to get back to all places in my project and use that column and insert something, at least null? Or null is automaticly ? Or deleting column , is there any problem with it ? Just wondering how hard is to keep mapped my database with my hibernate objects. Because we all know how it is in real life that not everything is going like we assumed, and some changes need to be done
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |