Thanks for your email, Lutz. Please see below for comments..

my two cents, in three parts...

- about the problem:
well, usually, it kind of works. This may sound silly, but do you
maybe have hbm2ddl.auto set to "create-drop" ?
Don't know what that does but I'll try it later, once I figure out how and where to set that...


Or when you check if
something has been stored, are you sure you're checking the right
database? I'm not making fun of you, I have seen these things happen,
to very smart people. One more: are you using the HibernateTemplate
from the right package (there is a hibernate and a hibernate3 package.
Actually, I don't know what happens if you use the wrong one, might
even work).
Yes, it's the right DB (only have one) and package.

Anyhow, if nothing is stored and yet you don't get any error message,
I guess you have to recheck your configuration carefully.

- about the log file location
if you just give the filename, it will be created in the current
working directory. If you start Tomcat from the command line, that
will be $CATALINA_HOME/bin. If you start it using the Eclipse plugin,
the location is, well, eclipsed - I have not managed to find it yet.
Anyhow, both variants are not very desirable, so you might consider
providing an absolute path to your logfile (as in
/var/log/hibernate.log). Personally, on my development machine, I just
log to stdout.
I didn't find it in the Tomcat directory (I dont use Eclipse plugins), but I just switched to console output...
I did notice this during startup:
INFO: Second-level cache: enabled
May 24, 2006 1:52:50 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Query cache: disabled
May 24, 2006 1:52:50 PM org.hibernate.cfg.SettingsFactory createCacheProvider
INFO: Cache provider: org.hibernate.cache.HashtableCacheProvider
May 24, 2006 1:52:50 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Optimize cache for minimal puts: disabled
May 24, 2006 1:52:50 PM org.hibernate.cfg.SettingsFactory buildSettings
INFO: Structured second-level cache entries: disabled

So it seems like the only cache is the L2 cache. Could it be stuck there?


- about the "wanting to know the internals":
don't get me wrong, no offense intended, and it's really none of my
business, I just can't keep the thought to myself: I think it is a
very valid standpoint, but I also think it is slightly contradictory
in your case. You claim you want to know internals, but yet you use
the Spring HibernateTemplate? Isn't that all about hiding a lot of
internals?
Well... it's not like I don't want to use the shortcuts, I just want to know how it would work without them first, so I better know what the shortcuts do and why...
But still - if you put it that way, then I guess you're kind of right - I could first do the whole thing without HibernateTemplates and then switch to using them once I figured out how thing work without them... ;-)
Guess I was so focused on Spring and Hibernate that I left that step out :-)

MARK --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to