can u give me an example code of how to access the database? since the docs uses something like hibernateUtil and some listener, i really got not idea how. i tried a couple of times and defeated hehe
tenwit wrote:
Put hibernate3.jar in WEB_INF/lib, and hibernate.cfg.xml or hibernate.properties in WEB_INF/src (and therefore in WEB_INF/classes). This is the default setup: you can put your properties and/or .cfg.xml file anywhere, if you specify the path when configuring your session factory.
See the ref docs for filling out your .cfg.xml or .properties file.
That's the extent of your environment. Everything else is done in java code.