Prev | Current Page 787 | Next

Frank Zammetti

"Practical DWR 2 Projects"

hbm files (don??™t worry; we look at what they??™re
all about next). In short, if you make a change to the objects you??™re dealing with, this property
tells Hibernate to update the underlying schema as well automatically. You can also set this
to create-drop, among other settings, which would cause the schema to be dropped and recreated
fresh on every startup, which can be helpful during development, but obviously not
usually such a good idea in a production application!
I??™ll be the first to admit I??™m not a big-time Hibernate user, and because of this I may not have described all
of this in as much depth as you may like, especially if Hibernate is new to you. In that case, check out
www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html, which
goes into greater detail on all of this than I do (or can) go into here.
Those .hbm files I mentioned are up next, and in short, they tell Hibernate what the
underlying database schema should look like, but in the context of Java objects.
CHAPTER 9 n TIMEKEEPER: DWR EVEN MAKES PROJECT MANAGEMENT FUN! 468
Project.hbm.xml
For every Java class you wish to use in the context of Hibernate, you need to tell Hibernate a
little bit about it.


Pages:
775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799