Hah, embarrassing. Thanks very much, Alex. Glad it was something dumb and
not something complicaeted, though!
On 23 July 2012 09:10, Alex Kotchnev wrote:
> It seems that you might be setting the wrong hibernate configuration
> property - at least this thread (
>
> http://stackoverflow.com/ques
It seems that you might be setting the wrong hibernate configuration
property - at least this thread (
http://stackoverflow.com/questions/5303671/configure-hibernate-to-connect-to-database-via-jndi-datasource
)
on stack overflow indicates that the datasource property is
"hibernate.connection.dataso
The problem goes away if I provide a hibernate.cfg.xml file with all the
database connection properties, and set
HibernateSymbols.DEFAULT_CONFIGURATION to true.
So I suppose my question is:
What do I need to do to get rid of the hibernate.cfg.xml file? I need to
have my application use a data so
I'm having trouble getting a connection through tapestry-hibernate. Any
help would be appreciated! I imagine I'm not seeing some small thing I've
overlooked.
I'm configuring the hibernate connection in code, to use a DataSource
provided by the servlet container.
The data source is available - I
Aside from a purely T5 way of doing it,
*You can also look up a JNDI source, configured in your web.xml and in a
context.xml, and then have a different context.xml on each server you deploy
to. (This is assuming you can use the same dialect and options.) I used to
switch back and forth between J
You can contribute to the HibernateSessionSource service. Your
contributions are objects that are used to configure the Hibernate.
Such objects can decide what mode ("production" vs. "development") you
are in, and set the correct values for various Hibernate Configuration
properties.
On Mon, Jan 2
Hi,
Is there a way of setting the hibernate configuration file for the
HibernateModule? For example in my src/main/resources I want the config
to point to a live database, but for testing a different database. Is
there a way of doing this, without having to configure hibernate myself
and then