Skip to content

Tag: hibernate

Hibernate startup very slow

For some reason, the startup of my hibernate application is unbarrably slow. (up to 2 min) I have been thinking that the c3p0 configuration is plain wrong (related question) but studying the logs shows, that there is no activity just after the connection to the server is established. Also, using the built-in …

Initializing C3P0 connection pool takes 2 min

I can’t wrap my head around why the initialization of a c3p0 connection pool takes 2 min in my Hibernate application. This is in my Hibernate.cfg.xml: The connection settings are set in my HibernateUtil file when building the session factory. The pool is initialize when the first transaction in my tests…

JPA could not locate named parameter

I keep getting the following error: “could not locate named parameter [articleCommentId]” but it doesn’t make sense to me because to me the named parameter is very much in place. Here is an extract of the stack trace with the relevant error: Answer I bet it is due to the extra ; in your quer…