Re: Maven2 and unit tests with hibernate and jpa connection problems

2007-12-01 Thread Ryan Moquin
Yeah, I finally went back to that method and it seems to have gotten me going again. It was a long time since I had problems with doing it that way, so whatever the problems were they may have been fixed. I've tried DBUnit but it can't handle circular relationships in databases. At least the last

Re: Maven2 and unit tests with hibernate and jpa connection problems

2007-12-01 Thread Ryan Moquin
Right, the reason I refer to them as a unit test is because live interaction with a database is the only way to test a DAO that makes any sense in my opinion. I don't think there is any value to mocking out an entity manager in order to eliminate the database (in JPA it's prob not HSQL, but regard

Re: Maven2 and unit tests with hibernate and jpa connection problems

2007-12-01 Thread Steve Ebersole
On Saturday 01 December 2007 09:53:30 am Ryan Moquin wrote: > I think my main concern with this (hence why I'm asking general advice) is > that sometimes a unit test might work against HSQL and fail against another > database such as MSSQL? Or am I worrying about something I shouldn't? > > I did m

Re: Maven2 and unit tests with hibernate and jpa connection problems

2007-12-01 Thread Paul MERLIN
Le Saturday 01 December 2007 16:53:30 Ryan Moquin, vous avez écrit : > I think my main concern with this (hence why I'm asking general advice) is > that sometimes a unit test might work against HSQL and fail against another > database such as MSSQL? Or am I worrying about something I shouldn't? I

Re: Maven2 and unit tests with hibernate and jpa connection problems

2007-12-01 Thread Marco Mistroni
Hi, if u use hibernate.hbm.ddl=true to generate your tables, hibernate will take care of building tables for proper database you'll specify if you then use dbunit to populate tables, dbunit will take care too of handling database issues... hth marco On Dec 1, 2007 3:53 PM, Ryan Moquin <[EMAIL P

Re: Maven2 and unit tests with hibernate and jpa connection problems

2007-12-01 Thread Ryan Moquin
I think my main concern with this (hence why I'm asking general advice) is that sometimes a unit test might work against HSQL and fail against another database such as MSSQL? Or am I worrying about something I shouldn't? I did make some progress finally though, I kept connection pooling on in my

Re: Maven2 and unit tests with hibernate and jpa connection problems

2007-12-01 Thread Paul MERLIN
Le Saturday 01 December 2007 14:14:37 Marco Mistroni, vous avez écrit : > Hi, > have u ever tried to use HSQL , in memory db? Maybe this will help you get started with unit testing entities in memory with maven : http://eskatos.wordpress.com/2007/10/15/unit-test-jpa-entities-with-in-memory-datab

Re: Maven2 and unit tests with hibernate and jpa connection problems

2007-12-01 Thread Marco Mistroni
Hi, have u ever tried to use HSQL , in memory db? regards marco On Dec 1, 2007 1:30 AM, Ryan Moquin <[EMAIL PROTECTED]> wrote: > I'm having some trouble with my Maven2 build (using hibernate, jpa and > spring) recently where all of a sudden I'm starting to get this error > sporadically: > > ..

Maven2 and unit tests with hibernate and jpa connection problems

2007-11-30 Thread Ryan Moquin
I'm having some trouble with my Maven2 build (using hibernate, jpa and spring) recently where all of a sudden I'm starting to get this error sporadically: ... Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host has failed. java.net.BindE xception: Address