-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Different Behaviour Under Same Conditions
PostPosted: Sat Nov 11, 2006 9:16 pm 
Newbie

Joined: Thu Nov 09, 2006 6:04 am
Posts: 3
Guys,

A few days ago I posted this (it's long and boring):

http://forum.hibernate.org/viewtopic.ph ... highlight=

I had 38 views and ZERO answers!

Night after night I have tried to solve this issue and failed. I don't give up easily and I won't let this go. But I need help!

Because we are all so much better inside our IDEs than reading posts... I'm making the code available for auditing. It's here for download:

[code no longer available]

You will need Visual Studio 2005, SQL Server 2005, .NET 2.0 and NUnit 2.2.8.

The ZIP package contains everything you will need (except the software mentioned above), even the SQL Scripts. It's a no brainer! Just unzip it, compile it and run the NUnit tests (use the "Server.nunit file"). Make sure that you configure your database settings. They are on the "Server.nunit.config" file.

The NUnit file has two tests. They are identical. The million dollar questions is:

Why does one test fail and the other succeed?

Thank for reading this.

Regards.

John


Last edited by jmcl on Sat Nov 11, 2006 10:21 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 11, 2006 9:52 pm 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
I'm not sure how to break this to you but...

You spelled "user_customer_id" wrong in your SQL (you have "user_costumer_id")


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 11, 2006 10:05 pm 
Newbie

Joined: Thu Nov 09, 2006 6:04 am
Posts: 3
The logs were clear:

Server.UnitTest.DataAccess.CustomersDAOTest.FindAll : NHibernate.ADOException : could not initialize collection: [Server.DataAccess.Model.Customer.Users#8]
----> System.Data.SqlClient.SqlException : Invalid column name 'user_customer_id'.
Invalid column name 'user_customer_id'.

I kept looking for problems on the code. Never on the Database.
I sure learned a few things today.
Thanks! You saved my day.
Case closed.

John


Last edited by jmcl on Sat Nov 11, 2006 10:19 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 11, 2006 10:16 pm 
Senior
Senior

Joined: Sat Mar 25, 2006 9:16 am
Posts: 150
yeah, it happens all the time. You just needed another set of eyes


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.