Re: Hibernate and resources

2007-08-17 Thread Johann Reyes
Hello Mathias

you should put it in your resources directory and do something like this in
your applicationContext.xml in your sessionFactory bean:



Regards

Johann Reyes


Re: Hibernate and resources

2007-08-16 Thread Mathias P.W Nilsson

Yes! I did that and it worked! Thanks :)
-- 
View this message in context: 
http://www.nabble.com/Hibernate-and-resources-tf4280221s177.html#a12183535
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: Hibernate and resources

2007-08-16 Thread Wayne Fay
Not s/m/j/resources, simply src/main/resources. Try that and see if it works.

And if this is simply for testing, put your file in src/test/resources.

Wayne

On 8/16/07, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote:
>
> Ahhh I'm tearing hair out. I've set up maven, mysql, c3p0 and hibernate.
> Actually I want to use spring but I don't know how. Anyway when I test the
> application the testcase can't find hibernate.cfg.xml?
>
> I've read that all files,images should be in the src/main/java/resources.
> But for me to get it to work I have to put the hibernate.cfg.xml in
> src/main/java.
>
> Can anyone help me with this?
> --
> View this message in context: 
> http://www.nabble.com/Hibernate-and-resources-tf4280221s177.html#a12183032
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Hibernate and resources

2007-08-16 Thread Mathias P.W Nilsson

Ahhh I'm tearing hair out. I've set up maven, mysql, c3p0 and hibernate. 
Actually I want to use spring but I don't know how. Anyway when I test the
application the testcase can't find hibernate.cfg.xml?

I've read that all files,images should be in the src/main/java/resources.
But for me to get it to work I have to put the hibernate.cfg.xml in
src/main/java. 

Can anyone help me with this?
-- 
View this message in context: 
http://www.nabble.com/Hibernate-and-resources-tf4280221s177.html#a12183032
Sent from the Maven - Users mailing list archive at Nabble.com.


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