Our project uses Hibernate (3.3.2) with c3p0 as our connection pool. For a while, it seems there were some c3p0 properties in a c3p0.properties file, and others in hibernate.cfg.xml. I’ve just moved the last two c3p0 properties into hibernate.cfg.xml and confirmed they are being respected.
Is there ANY reason to keep around the c3p0 properties file, when c3p0 properties can be specified in hibernate.cfg.xml? Such as there being a property that can’t be configured there, or another reason I’m not thinking of. It seems to me that specifying c3p0 properties in two places just causes confusion,
I think there was a previous belief that some properties couldn’t be passed through in hibernate.cfg.xml, which I expect is just a myth. That is the primary reason for this question.
No, no reason. (I don’t even have hibernate.cfg.xml – everything is in the spring configuration)