You need to make two changes:
<property name="configLocations" value="classpath*:hibernate.cfg.xml"/>
Note that it may not match wildcard patterns placed in the root of the
classpath: see the warnings here for a more detailed explanation:
http://tinyurl.com/2uaxbl
Mike.
On 7/2/07, chino fish <[EMAIL PROTECTED]> wrote:
May I user more than one hibernate.cfg.xml in my project ?
just like more than one spring config files .
coz I need to generate my entity, I also wish to generate the
hibernate.cfg.xml, and config the generated filename into
applicationContext-dao.xml, like this:
<property name="configLocation"
value="classpath:hibernate*.cfg.xml"/>
However, when I do configuration like this, build failed !
any suggestion will be great appreciated !!
chinofish