Prev | Current Page 784 | Next

Frank Zammetti

"Practical DWR 2 Projects"

Remember though, there are no rules around this; you are free
to delineate configuration in any way you see fit, in any combination.
Here we simply have three Java classes that DWR will be allowed to marshal back and
forth to JavaScript, and all three use the built-in bean converter. The contents of each class
will be discussed later, but they are nonetheless pretty obvious I think!
hibernate.cfg.xml
The hibernate.cfg.xml file gives Hibernate the basic information it will need to connect to the
database underlying the application. The contents of this file are shown in Listing 9-3.
Listing 9-3. The hibernate.cfg.xml Configuration File

"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">


org.hsqldb.jdbcDriver
jdbc:hsqldb:file:timekeeper
sa

3
org.


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