db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "DatabaseManager" by DonaldMcLean
Date Fri, 28 Apr 2006 20:52:22 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by DonaldMcLean:

  Derby and Hibernate are each very large packages full of power and fraught with complexities.
When I first started working with them, I desperately wanted a very simple mechanism that
would handle the basic drudgery so that I could concentrate on writing my application. The
led me to the creation of a fairly small class (208 lines) that did everything that I needed.
  Please see the DatabaseManagerSource and the DatabaseUtilitiesSource.
+ === Configuration Files ===
+ The glue that makes everything work is the configuration files. A Hibernate file for each
class (MyClass.hbm.xml) and a DatabaseManager.xml file (in the same package as the DatabaseManager
+ The DatabaseManager XML file consists of a root element and two child elements, Classes
and createSql. The Classes element is a list of "Class" elements containing the fully qualified
class name of a class that you want to persist. The createSql element is a list of "statement"
elements containing the SQL statements that will be used to create the database.
  === Example ===
  Using a DatabaseManager is fairly simple.

View raw message