Initial import!
This commit is contained in:
@@ -0,0 +1,184 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Northwind.Service", "src\Spring.Northwind.Service\Spring.Northwind.Service.csproj", "{9E15876F-E9E0-43B7-9874-B54F163757D6}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Northwind.Dao", "src\Spring.Northwind.Dao\Spring.Northwind.Dao.csproj", "{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Northwind.Dao.NHibernate", "src\Spring.Northwind.Dao.NHibernate\Spring.Northwind.Dao.NHibernate.csproj", "{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Northwind.IntegrationTests", "test\Spring.Northwind.IntegrationTests\Spring.Northwind.IntegrationTests.csproj", "{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Aspects", "src\Spring.Aspects\Spring.Aspects.csproj", "{53B04C54-63EA-45AA-BB83-8950AF3C5D68}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Core.2005", "..\..\..\src\Spring\Spring.Core\Spring.Core.2005.csproj", "{710961A3-0DF4-49E4-A26E-F5B9C044AC84}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{6F8CFB7E-8CC9-477B-83D1-2FADD070EEE0}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Aop.2005", "..\..\..\src\Spring\Spring.Aop\Spring.Aop.2005.csproj", "{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Data.2005", "..\..\..\src\Spring\Spring.Data\Spring.Data.2005.csproj", "{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Data.NHibernate.2005", "..\..\..\src\Spring\Spring.Data.NHibernate\Spring.Data.NHibernate.2005.csproj", "{130E1609-45A7-4F65-B112-105F2DD3E2CE}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Web.2005", "..\..\..\src\Spring\Spring.Web\Spring.Web.2005.csproj", "{BA4789EB-281A-48EA-8763-28B9F0596A18}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|.NET = Debug|.NET
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|Mixed Platforms = Debug|Mixed Platforms
|
||||
Release|.NET = Release|.NET
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|Mixed Platforms = Release|Mixed Platforms
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{710961A3-0DF4-49E4-A26E-F5B9C044AC84}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{3A3A4E65-45A6-4B20-B460-0BEDC302C02C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{AE00E5AB-C39A-436F-86D2-33BFE33E2E40}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{130E1609-45A7-4F65-B112-105F2DD3E2CE}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{130E1609-45A7-4F65-B112-105F2DD3E2CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{130E1609-45A7-4F65-B112-105F2DD3E2CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{130E1609-45A7-4F65-B112-105F2DD3E2CE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{130E1609-45A7-4F65-B112-105F2DD3E2CE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{130E1609-45A7-4F65-B112-105F2DD3E2CE}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{130E1609-45A7-4F65-B112-105F2DD3E2CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{130E1609-45A7-4F65-B112-105F2DD3E2CE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{130E1609-45A7-4F65-B112-105F2DD3E2CE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{130E1609-45A7-4F65-B112-105F2DD3E2CE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{BA4789EB-281A-48EA-8763-28B9F0596A18}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{BA4789EB-281A-48EA-8763-28B9F0596A18}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BA4789EB-281A-48EA-8763-28B9F0596A18}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BA4789EB-281A-48EA-8763-28B9F0596A18}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{BA4789EB-281A-48EA-8763-28B9F0596A18}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{BA4789EB-281A-48EA-8763-28B9F0596A18}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{BA4789EB-281A-48EA-8763-28B9F0596A18}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BA4789EB-281A-48EA-8763-28B9F0596A18}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BA4789EB-281A-48EA-8763-28B9F0596A18}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{BA4789EB-281A-48EA-8763-28B9F0596A18}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -0,0 +1,148 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00
|
||||
# Visual Studio 2005
|
||||
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "L:\...\Spring.Northwind.Web\", "src\Spring.Northwind.Web\", "{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
ProjectReferences = "{53B04C54-63EA-45AA-BB83-8950AF3C5D68}|Spring.Aspects.dll;{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}|Spring.Northwind.Dao.dll;{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}|Spring.Northwind.Dao.NHibernate.dll;{9E15876F-E9E0-43B7-9874-B54F163757D6}|Spring.Northwind.Service.dll;{FD89FEBE-4914-45F3-9123-B2CB954810DD}|Spring.Northwind.Web.References.dll;"
|
||||
Debug.AspNetCompiler.VirtualPath = "/Spring.Northwind.Web"
|
||||
Debug.AspNetCompiler.PhysicalPath = "src\Spring.Northwind.Web\"
|
||||
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\Spring.Northwind.Web\"
|
||||
Debug.AspNetCompiler.Updateable = "true"
|
||||
Debug.AspNetCompiler.ForceOverwrite = "true"
|
||||
Debug.AspNetCompiler.FixedNames = "false"
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.VirtualPath = "/Spring.Northwind.Web"
|
||||
Release.AspNetCompiler.PhysicalPath = "src\Spring.Northwind.Web\"
|
||||
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\Spring.Northwind.Web\"
|
||||
Release.AspNetCompiler.Updateable = "true"
|
||||
Release.AspNetCompiler.ForceOverwrite = "true"
|
||||
Release.AspNetCompiler.FixedNames = "false"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
VWDPort = "17866"
|
||||
DefaultWebSiteLanguage = "Visual C#"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Northwind.Service", "src\Spring.Northwind.Service\Spring.Northwind.Service.csproj", "{9E15876F-E9E0-43B7-9874-B54F163757D6}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Northwind.Dao", "src\Spring.Northwind.Dao\Spring.Northwind.Dao.csproj", "{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Northwind.Dao.NHibernate", "src\Spring.Northwind.Dao.NHibernate\Spring.Northwind.Dao.NHibernate.csproj", "{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Northwind.IntegrationTests", "test\Spring.Northwind.IntegrationTests\Spring.Northwind.IntegrationTests.csproj", "{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Aspects", "src\Spring.Aspects\Spring.Aspects.csproj", "{53B04C54-63EA-45AA-BB83-8950AF3C5D68}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Spring.Northwind.Web.References", "src\Spring.Northwind.Web.References\Spring.Northwind.Web.References.csproj", "{FD89FEBE-4914-45F3-9123-B2CB954810DD}"
|
||||
ProjectSection(WebsiteProperties) = preProject
|
||||
Debug.AspNetCompiler.Debug = "True"
|
||||
Release.AspNetCompiler.Debug = "False"
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|.NET = Debug|.NET
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|Mixed Platforms = Debug|Mixed Platforms
|
||||
Release|.NET = Release|.NET
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|Mixed Platforms = Release|Mixed Platforms
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}.Debug|.NET.ActiveCfg = Debug|.NET
|
||||
{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}.Debug|.NET.Build.0 = Debug|.NET
|
||||
{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}.Debug|Any CPU.ActiveCfg = Debug|.NET
|
||||
{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}.Debug|Mixed Platforms.ActiveCfg = Debug|.NET
|
||||
{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}.Debug|Mixed Platforms.Build.0 = Debug|.NET
|
||||
{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}.Release|.NET.ActiveCfg = Debug|.NET
|
||||
{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}.Release|.NET.Build.0 = Debug|.NET
|
||||
{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}.Release|Any CPU.ActiveCfg = Debug|.NET
|
||||
{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}.Release|Mixed Platforms.ActiveCfg = Debug|.NET
|
||||
{3E321CBC-75B0-45C4-AFEF-7CEED28368AE}.Release|Mixed Platforms.Build.0 = Debug|.NET
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{9E15876F-E9E0-43B7-9874-B54F163757D6}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{53B04C54-63EA-45AA-BB83-8950AF3C5D68}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{FD89FEBE-4914-45F3-9123-B2CB954810DD}.Debug|.NET.ActiveCfg = Debug|Any CPU
|
||||
{FD89FEBE-4914-45F3-9123-B2CB954810DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{FD89FEBE-4914-45F3-9123-B2CB954810DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{FD89FEBE-4914-45F3-9123-B2CB954810DD}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{FD89FEBE-4914-45F3-9123-B2CB954810DD}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{FD89FEBE-4914-45F3-9123-B2CB954810DD}.Release|.NET.ActiveCfg = Release|Any CPU
|
||||
{FD89FEBE-4914-45F3-9123-B2CB954810DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{FD89FEBE-4914-45F3-9123-B2CB954810DD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{FD89FEBE-4914-45F3-9123-B2CB954810DD}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{FD89FEBE-4914-45F3-9123-B2CB954810DD}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
NAntAddinLastFileName =
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
17
examples/Spring/Spring.Data.NHibernate.Northwind/readme.txt
Normal file
17
examples/Spring/Spring.Data.NHibernate.Northwind/readme.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
Database configuration
|
||||
======================
|
||||
|
||||
A database file containing the Northwind database schema and data is located in the
|
||||
directory src\Spring.Northwind.Web\App_Data named NORTHWND.MDF. This file can me mounted explicitly using SQL Server 2005 or
|
||||
SQL Server Express. The web project's <db:provider> configuration is
|
||||
setup to point to this database file.
|
||||
|
||||
The integratation tests point to a copy of that database located in the
|
||||
directory \test\Spring.Northwind.IntegrationTests\bin\Debug. You will need to copy the .mdf file to the bin\Debug
|
||||
directory to run the integration test.
|
||||
|
||||
SQL Server Express or 2005 will need to running before the web application or integration test is launched.
|
||||
|
||||
If you prefer to run against your own database, the schema is located in the test_northwind.sql and you will need to
|
||||
modify your connection string accordingly.
|
||||
@@ -0,0 +1,103 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright <20> 2002-2006 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System;
|
||||
|
||||
using AopAlliance.Intercept;
|
||||
using Common.Logging;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Aspects.Logging
|
||||
{
|
||||
/// <summary>
|
||||
/// Basic implementation of a logging aspect using Common.Logging library.
|
||||
/// </summary>
|
||||
/// <author>Bruno Baia</author>
|
||||
/// <version>$Id: CommonLoggingAroundAdvice.cs,v 1.2 2007/06/27 16:10:59 bbaia Exp $</version>
|
||||
public class CommonLoggingAroundAdvice : IMethodInterceptor
|
||||
{
|
||||
#region Logging
|
||||
|
||||
private static readonly ILog LOG = LogManager.GetLogger(typeof(CommonLoggingAroundAdvice));
|
||||
|
||||
#endregion
|
||||
|
||||
#region Fields
|
||||
|
||||
private LogLevel _level = LogLevel.All;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
public LogLevel Level
|
||||
{
|
||||
get { return _level; }
|
||||
set { _level = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IMethodInterceptor Members
|
||||
|
||||
public object Invoke(IMethodInvocation invocation)
|
||||
{
|
||||
Log("Intercepted call : about to invoke method '{0}'", invocation.Method.Name);
|
||||
object returnValue = invocation.Proceed();
|
||||
Log("Intercepted call : returned '{0}'", returnValue);
|
||||
return returnValue;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private void Log(string text, params object[] args)
|
||||
{
|
||||
switch (Level)
|
||||
{
|
||||
case LogLevel.All:
|
||||
case LogLevel.Debug:
|
||||
if (LOG.IsDebugEnabled) LOG.Debug(String.Format(text, args));
|
||||
break;
|
||||
case LogLevel.Error:
|
||||
if (LOG.IsErrorEnabled) LOG.Error(String.Format(text, args));
|
||||
break;
|
||||
case LogLevel.Fatal:
|
||||
if (LOG.IsFatalEnabled) LOG.Fatal(String.Format(text, args));
|
||||
break;
|
||||
case LogLevel.Info:
|
||||
if (LOG.IsInfoEnabled) LOG.Info(String.Format(text, args));
|
||||
break;
|
||||
case LogLevel.Warn:
|
||||
if (LOG.IsWarnEnabled) LOG.Warn(String.Format(text, args));
|
||||
break;
|
||||
case LogLevel.Off:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Spring.Aspects")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Spring.Aspects")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2006")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("a308abe4-e623-4315-aa51-13b52a9324d8")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,55 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{53B04C54-63EA-45AA-BB83-8950AF3C5D68}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring</RootNamespace>
|
||||
<AssemblyName>Spring.Aspects</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Common.Logging, Version=1.0.2.0, Culture=neutral, PublicKeyToken=af08829b84f0328e">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\Net\2.0\Common.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Aop, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Aop.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Aspects\Logging\CommonLoggingAroundAdvice.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,67 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
|
||||
using System.Collections;
|
||||
|
||||
using Spring.Data.NHibernate.Support;
|
||||
using Spring.Transaction.Interceptor;
|
||||
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Dao.NHibernate
|
||||
{
|
||||
public class HibernateCustomerDao : HibernateDaoSupport, ICustomerDao
|
||||
{
|
||||
public Customer FindById(string customerId)
|
||||
{
|
||||
return HibernateTemplate.Load(typeof (Customer), customerId) as Customer;
|
||||
}
|
||||
|
||||
public IList FindAll()
|
||||
{
|
||||
return HibernateTemplate.LoadAll(typeof (Customer));
|
||||
}
|
||||
|
||||
[Transaction(ReadOnly = false)]
|
||||
public Customer Save(Customer customer)
|
||||
{
|
||||
HibernateTemplate.Save(customer);
|
||||
return customer;
|
||||
}
|
||||
|
||||
[Transaction(ReadOnly = false)]
|
||||
public Customer SaveOrUpdate(Customer customer)
|
||||
{
|
||||
HibernateTemplate.SaveOrUpdate(customer);
|
||||
return customer;
|
||||
}
|
||||
|
||||
[Transaction(ReadOnly = false)]
|
||||
public void Delete(Customer customer)
|
||||
{
|
||||
HibernateTemplate.Delete(customer);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System.Collections;
|
||||
|
||||
using Spring.Data.NHibernate.Support;
|
||||
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Dao.NHibernate
|
||||
{
|
||||
public class HibernateOrderDao : HibernateDaoSupport, IOrderDao
|
||||
{
|
||||
public Order FindById(long orderId)
|
||||
{
|
||||
return HibernateTemplate.Load(typeof(Order), orderId) as Order;
|
||||
|
||||
}
|
||||
|
||||
public IList FindAll()
|
||||
{
|
||||
return HibernateTemplate.LoadAll(typeof(Order));
|
||||
}
|
||||
|
||||
public Order Save(Order order)
|
||||
{
|
||||
HibernateTemplate.Save(order);
|
||||
return order;
|
||||
}
|
||||
|
||||
public Order SaveOrUpdate(Order order)
|
||||
{
|
||||
HibernateTemplate.SaveOrUpdate(order);
|
||||
return order;
|
||||
}
|
||||
|
||||
public void Delete(Order order)
|
||||
{
|
||||
HibernateTemplate.Delete(order);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System.Collections;
|
||||
|
||||
using Spring.Data.NHibernate.Support;
|
||||
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Dao.NHibernate
|
||||
{
|
||||
public class HibernateProductDao : HibernateDaoSupport, IProductDao
|
||||
{
|
||||
public Product FindById(int productId)
|
||||
{
|
||||
return HibernateTemplate.Load(typeof(Product), productId) as Product;
|
||||
|
||||
}
|
||||
|
||||
public IList FindAll()
|
||||
{
|
||||
return HibernateTemplate.LoadAll(typeof(Product));
|
||||
}
|
||||
|
||||
public Product Save(Product product)
|
||||
{
|
||||
HibernateTemplate.Save(product);
|
||||
return product;
|
||||
}
|
||||
|
||||
public Product SaveOrUpdate(Product product)
|
||||
{
|
||||
HibernateTemplate.SaveOrUpdate(product);
|
||||
return product;
|
||||
}
|
||||
|
||||
public void Delete(Product product)
|
||||
{
|
||||
HibernateTemplate.Delete(product);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
|
||||
<class name="Spring.Northwind.Domain.Customer, Spring.Northwind.Dao" table="Customers" lazy="false">
|
||||
<id name="Id" type="String" unsaved-value="null">
|
||||
<column name="CustomerID" length="5" sql-type="nchar" not-null="true" unique="true" index="PK_Customers"/>
|
||||
<generator class="native" />
|
||||
</id>
|
||||
<property name="CompanyName" type="String">
|
||||
<column name="CompanyName" length="40" sql-type="nvarchar" not-null="true" index="CompanyName"/>
|
||||
</property>
|
||||
<property name="ContactName" type="String">
|
||||
<column name="ContactName" length="30" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="ContactTitle" type="String">
|
||||
<column name="ContactTitle" length="30" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="Address" type="String">
|
||||
<column name="Address" length="60" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="City" type="String">
|
||||
<column name="City" length="15" sql-type="nvarchar" not-null="false" index="City"/>
|
||||
</property>
|
||||
<property name="Region" type="String">
|
||||
<column name="Region" length="15" sql-type="nvarchar" not-null="false" index="Region"/>
|
||||
</property>
|
||||
<property name="PostalCode" type="String">
|
||||
<column name="PostalCode" length="10" sql-type="nvarchar" not-null="false" index="PostalCode"/>
|
||||
</property>
|
||||
<property name="Country" type="String">
|
||||
<column name="Country" length="15" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="Phone" type="String">
|
||||
<column name="Phone" length="24" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="Fax" type="String">
|
||||
<column name="Fax" length="24" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<bag name="Orders" inverse="true" lazy="true" cascade="all">
|
||||
<key column="CustomerID"/>
|
||||
<one-to-many class="Spring.Northwind.Domain.Order, Spring.Northwind.Dao"/>
|
||||
</bag>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
|
||||
<class name="Spring.Northwind.Domain.Customer, Spring.Northwind.Dao" table="Customers" lazy="false">
|
||||
<id name="Id" type="String" unsaved-value="null">
|
||||
<column name="CustomerID" length="5" sql-type="nchar" not-null="true" unique="true" index="PK_Customers"/>
|
||||
<generator class="native" />
|
||||
</id>
|
||||
<property name="CompanyName" type="String">
|
||||
<column name="CompanyName" length="40" sql-type="nvarchar" not-null="true" index="CompanyName"/>
|
||||
</property>
|
||||
<property name="ContactName" type="String">
|
||||
<column name="ContactName" length="30" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="ContactTitle" type="String">
|
||||
<column name="ContactTitle" length="30" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="Address" type="String">
|
||||
<column name="Address" length="60" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="City" type="String">
|
||||
<column name="City" length="15" sql-type="nvarchar" not-null="false" index="City"/>
|
||||
</property>
|
||||
<property name="Region" type="String">
|
||||
<column name="Region" length="15" sql-type="nvarchar" not-null="false" index="Region"/>
|
||||
</property>
|
||||
<property name="PostalCode" type="String">
|
||||
<column name="PostalCode" length="10" sql-type="nvarchar" not-null="false" index="PostalCode"/>
|
||||
</property>
|
||||
<property name="Country" type="String">
|
||||
<column name="Country" length="15" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="Phone" type="String">
|
||||
<column name="Phone" length="24" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="Fax" type="String">
|
||||
<column name="Fax" length="24" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<bag name="Orders" inverse="true" lazy="true" cascade="all">
|
||||
<key column="CustomerID"/>
|
||||
<one-to-many class="Spring.Northwind.Domain.Order, Spring.Northwind.Dao"/>
|
||||
</bag>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
|
||||
<class name="Spring.Northwind.Domain.Order, Spring.Northwind.Dao" table="Orders" lazy="false">
|
||||
<id name="Id" type="Int32" unsaved-value="0">
|
||||
<column name="OrderID" sql-type="int" not-null="true" unique="true" index="PK_Orders"/>
|
||||
<generator class="native" />
|
||||
</id>
|
||||
<property name="OrderDate" type="DateTime">
|
||||
<column name="OrderDate" sql-type="datetime" not-null="false" index="OrderDate"/>
|
||||
</property>
|
||||
<property name="RequiredDate" type="DateTime">
|
||||
<column name="RequiredDate" sql-type="datetime" not-null="false"/>
|
||||
</property>
|
||||
<property name="ShippedDate" type="DateTime">
|
||||
<column name="ShippedDate" sql-type="datetime" not-null="false" index="ShippedDate"/>
|
||||
</property>
|
||||
<!--
|
||||
<property name="Freight" type="Decimal">
|
||||
<column name="Freight" sql-type="money" not-null="false"/>
|
||||
</property>
|
||||
-->
|
||||
<property name="ShipName" type="String">
|
||||
<column name="ShipName" length="40" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="ShipAddress" type="String">
|
||||
<column name="ShipAddress" length="60" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="ShipCity" type="String">
|
||||
<column name="ShipCity" length="15" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="ShipRegion" type="String">
|
||||
<column name="ShipRegion" length="15" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
<property name="ShipPostalCode" type="String">
|
||||
<column name="ShipPostalCode" length="10" sql-type="nvarchar" not-null="false" index="ShipPostalCode"/>
|
||||
</property>
|
||||
<property name="ShipCountry" type="String">
|
||||
<column name="ShipCountry" length="15" sql-type="nvarchar" not-null="false"/>
|
||||
</property>
|
||||
|
||||
<bag name="OrderDetails" inverse="true" lazy="true" cascade="all">
|
||||
<key column="OrderID"/>
|
||||
<one-to-many class="Spring.Northwind.Domain.OrderDetail, Spring.Northwind.Dao"/>
|
||||
</bag>
|
||||
|
||||
<!--
|
||||
<many-to-one name="Customer" class="Spring.Northwind.Domain.Order, Spring.Northwind.Dao">
|
||||
<column name="CustomerID" length="5" sql-type="nchar" not-null="false" index="CustomerID"/>
|
||||
</many-to-one>
|
||||
-->
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
|
||||
<class name="Spring.Northwind.Domain.OrderDetail, Spring.Northwind.Dao" table="[Order Details]" lazy="false">
|
||||
<composite-id>
|
||||
<key-many-to-one name="Order" class="Spring.Northwind.Domain.Order, Spring.Northwind.Dao" column="OrderID"/>
|
||||
<key-property name="ProductId" column="ProductID" />
|
||||
</composite-id>
|
||||
<property name="UnitPrice" type="double">
|
||||
<column name="UnitPrice" sql-type="money" not-null="false" />
|
||||
</property>
|
||||
<property name="Quantity" type="int">
|
||||
<column name="Quantity" sql-type="int" not-null="false" />
|
||||
</property>
|
||||
<property name="Discount" type="double">
|
||||
<column name="Discount" sql-type="real" not-null="false" />
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Spring.Northwind.Dao.NHibernate")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Spring.Northwind.Dao.NHibernate")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2006")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("3cb95513-bb8f-4426-bc10-c4c1cae81853")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,108 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.Northwind</RootNamespace>
|
||||
<AssemblyName>Spring.Northwind.Dao.NHibernate</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="antlr.runtime, Version=2.7.6.2, Culture=neutral, PublicKeyToken=65e474d141e25e07, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\net\2.0\antlr.runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Castle.DynamicProxy, Version=1.1.5.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\Castle.DynamicProxy.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common.Logging, Version=1.0.2.0, Culture=neutral, PublicKeyToken=af08829b84f0328e">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Common.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common.Logging.Log4Net, Version=1.2.0.2, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Common.Logging.Log4Net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Iesi.Collections, Version=1.0.0.3, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\Iesi.Collections.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\log4net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NHibernate, Version=1.2.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\NHibernate.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Core, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Data, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Data.NHibernate12, Version=1.1.1.20093, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Data.NHibernate12.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Dao\NHibernate\HibernateCustomerDao.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Dao\NHibernate\HibernateOrderDao.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Dao\NHibernate\HibernateProductDao.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Mappings\Customer.hbm.xml" />
|
||||
<EmbeddedResource Include="Mappings\Order.hbm.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Spring.Northwind.Dao\Spring.Northwind.Dao.csproj">
|
||||
<Project>{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}</Project>
|
||||
<Name>Spring.Northwind.Dao</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Mappings\OrderDetail.hbm.xml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,39 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System.Collections;
|
||||
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Dao
|
||||
{
|
||||
public interface ICustomerDao
|
||||
{
|
||||
Customer FindById(string customerId);
|
||||
IList FindAll();
|
||||
Customer Save(Customer customer);
|
||||
Customer SaveOrUpdate(Customer customer);
|
||||
void Delete(Customer customer);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System.Collections;
|
||||
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Dao
|
||||
{
|
||||
public interface IOrderDao
|
||||
{
|
||||
Order FindById(long orderId);
|
||||
IList FindAll();
|
||||
Order Save(Order order);
|
||||
Order SaveOrUpdate(Order order);
|
||||
void Delete(Order order);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System.Collections;
|
||||
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Dao
|
||||
{
|
||||
public interface IProductDao
|
||||
{
|
||||
Product FindById(int productId);
|
||||
IList FindAll();
|
||||
Product Save(Product product);
|
||||
Product SaveOrUpdate(Product product);
|
||||
void Delete(Product product);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,150 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
using System.Collections;
|
||||
|
||||
namespace Spring.Northwind.Domain
|
||||
{
|
||||
public class Customer
|
||||
{
|
||||
#region Fields
|
||||
|
||||
protected string id;
|
||||
protected string companyName;
|
||||
protected string contactName;
|
||||
protected string contactTitle;
|
||||
protected string address;
|
||||
protected string city;
|
||||
protected string region;
|
||||
protected string postalCode;
|
||||
protected string country;
|
||||
protected string phone;
|
||||
protected string fax;
|
||||
protected IList orders;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
public string Id
|
||||
{
|
||||
get { return id; }
|
||||
set { id = value; }
|
||||
}
|
||||
|
||||
public string CompanyName
|
||||
{
|
||||
get { return companyName; }
|
||||
set { companyName = value; }
|
||||
}
|
||||
|
||||
public string ContactName
|
||||
{
|
||||
get { return contactName; }
|
||||
set { contactName = value; }
|
||||
}
|
||||
|
||||
public string ContactTitle
|
||||
{
|
||||
get { return contactTitle; }
|
||||
set { contactTitle = value; }
|
||||
}
|
||||
|
||||
public string Address
|
||||
{
|
||||
get { return address; }
|
||||
set { address = value; }
|
||||
}
|
||||
|
||||
public string City
|
||||
{
|
||||
get { return city; }
|
||||
set { city = value; }
|
||||
}
|
||||
|
||||
public string Region
|
||||
{
|
||||
get { return region; }
|
||||
set { region = value; }
|
||||
}
|
||||
|
||||
public string PostalCode
|
||||
{
|
||||
get { return postalCode; }
|
||||
set { postalCode = value; }
|
||||
}
|
||||
|
||||
public string Country
|
||||
{
|
||||
get { return country; }
|
||||
set { country = value; }
|
||||
}
|
||||
|
||||
public string Phone
|
||||
{
|
||||
get { return phone; }
|
||||
set { phone = value; }
|
||||
}
|
||||
|
||||
public string Fax
|
||||
{
|
||||
get { return fax; }
|
||||
set { fax = value; }
|
||||
}
|
||||
|
||||
public IList Orders
|
||||
{
|
||||
get
|
||||
{
|
||||
if (orders == null)
|
||||
{
|
||||
orders = new ArrayList();
|
||||
}
|
||||
return orders;
|
||||
}
|
||||
set { orders = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor (s)
|
||||
|
||||
public Customer()
|
||||
{
|
||||
}
|
||||
|
||||
public Customer(string companyName, string contactName, string contactTitle, string address, string city,
|
||||
string region, string postalCode, string country, string phone, string fax)
|
||||
{
|
||||
this.companyName = companyName;
|
||||
this.contactName = contactName;
|
||||
this.contactTitle = contactTitle;
|
||||
this.address = address;
|
||||
this.city = city;
|
||||
this.region = region;
|
||||
this.postalCode = postalCode;
|
||||
this.country = country;
|
||||
this.phone = phone;
|
||||
this.fax = fax;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
namespace Spring.Northwind.Domain
|
||||
{
|
||||
public class Order
|
||||
{
|
||||
#region Fields
|
||||
|
||||
protected int id;
|
||||
protected DateTime orderDate;
|
||||
protected DateTime requiredDate;
|
||||
protected DateTime shippedDate;
|
||||
protected decimal freight;
|
||||
protected string shipName;
|
||||
protected string shipAddress;
|
||||
protected string shipCity;
|
||||
protected string shipRegion;
|
||||
protected string shipPostalCode;
|
||||
protected string shipCountry;
|
||||
protected Customer customer;
|
||||
|
||||
//protected Employee _employee;
|
||||
//protected Shipper _shipVia;
|
||||
protected IList orderDetails;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructor (s)
|
||||
|
||||
public Order()
|
||||
{
|
||||
}
|
||||
|
||||
public Order(DateTime orderDate, DateTime requiredDate, DateTime shippedDate, decimal freight, string shipName,
|
||||
string shipAddress, string shipCity, string shipRegion, string shipPostalCode, string shipCountry,
|
||||
Customer customer)
|
||||
{
|
||||
this.orderDate = orderDate;
|
||||
this.requiredDate = requiredDate;
|
||||
this.shippedDate = shippedDate;
|
||||
this.freight = freight;
|
||||
this.shipName = shipName;
|
||||
this.shipAddress = shipAddress;
|
||||
this.shipCity = shipCity;
|
||||
this.shipRegion = shipRegion;
|
||||
this.shipPostalCode = shipPostalCode;
|
||||
this.shipCountry = shipCountry;
|
||||
this.customer = customer;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Properties
|
||||
|
||||
public int Id
|
||||
{
|
||||
get { return id; }
|
||||
set { id = value; }
|
||||
}
|
||||
|
||||
public DateTime OrderDate
|
||||
{
|
||||
get { return orderDate; }
|
||||
set { orderDate = value; }
|
||||
}
|
||||
|
||||
public DateTime RequiredDate
|
||||
{
|
||||
get { return requiredDate; }
|
||||
set { requiredDate = value; }
|
||||
}
|
||||
|
||||
public DateTime ShippedDate
|
||||
{
|
||||
get { return shippedDate; }
|
||||
set { shippedDate = value; }
|
||||
}
|
||||
|
||||
public decimal Freight
|
||||
{
|
||||
get { return freight; }
|
||||
set { freight = value; }
|
||||
}
|
||||
|
||||
public string ShipName
|
||||
{
|
||||
get { return shipName; }
|
||||
set { shipName = value; }
|
||||
}
|
||||
|
||||
public string ShipAddress
|
||||
{
|
||||
get { return shipAddress; }
|
||||
set { shipAddress = value; }
|
||||
}
|
||||
|
||||
public string ShipCity
|
||||
{
|
||||
get { return shipCity; }
|
||||
set { shipCity = value; }
|
||||
}
|
||||
|
||||
public string ShipRegion
|
||||
{
|
||||
get { return shipRegion; }
|
||||
set { shipRegion = value; }
|
||||
}
|
||||
|
||||
public string ShipPostalCode
|
||||
{
|
||||
get { return shipPostalCode; }
|
||||
set { shipPostalCode = value; }
|
||||
}
|
||||
|
||||
public string ShipCountry
|
||||
{
|
||||
get { return shipCountry; }
|
||||
set { shipCountry = value; }
|
||||
}
|
||||
|
||||
public Customer Customer
|
||||
{
|
||||
get { return customer; }
|
||||
set { customer = value; }
|
||||
}
|
||||
|
||||
|
||||
public IList OrderDetails
|
||||
{
|
||||
get
|
||||
{
|
||||
if(orderDetails == null)
|
||||
{
|
||||
orderDetails = new ArrayList();
|
||||
}
|
||||
return orderDetails;
|
||||
}
|
||||
set { orderDetails = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace Spring.Northwind.Domain
|
||||
{
|
||||
public class OrderDetail
|
||||
{
|
||||
protected double unitPrice;
|
||||
protected int quantity;
|
||||
protected double discount;
|
||||
protected Order order;
|
||||
protected int productId;
|
||||
//protected Product product;
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (this == obj) return true;
|
||||
OrderDetail orderDetail = obj as OrderDetail;
|
||||
if (orderDetail == null) return false;
|
||||
return Equals(order.Id, orderDetail.order.Id) && Equals(productId, orderDetail.productId);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return order.Id.GetHashCode() + 29*productId.GetHashCode();
|
||||
}
|
||||
|
||||
public double UnitPrice
|
||||
{
|
||||
get { return this.unitPrice; }
|
||||
set { this.unitPrice = value; }
|
||||
}
|
||||
|
||||
public int Quantity
|
||||
{
|
||||
get { return this.quantity; }
|
||||
set { this.quantity = value; }
|
||||
}
|
||||
|
||||
public double Discount
|
||||
{
|
||||
get { return this.discount; }
|
||||
set { this.discount = value; }
|
||||
}
|
||||
|
||||
public Order Order
|
||||
{
|
||||
get { return this.order; }
|
||||
set { this.order = value; }
|
||||
}
|
||||
|
||||
public int ProductId
|
||||
{
|
||||
get { return this.productId; }
|
||||
set { this.productId = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Domain
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
protected int _id;
|
||||
protected string _productName;
|
||||
protected string _quantityPerUnit;
|
||||
protected decimal _unitPrice;
|
||||
protected short _unitsInStock;
|
||||
protected short _unitsOnOrder;
|
||||
protected short _reorderLevel;
|
||||
protected bool _discontinued;
|
||||
//protected Category _category;
|
||||
//protected Supplier _supplier;
|
||||
protected OrderDetail _orderDetail;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Spring.Northwind.Dao")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Spring.Northwind.Dao")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2006")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("bff73ba6-baef-446a-aad4-99cc7b55fcb3")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,51 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.Northwind</RootNamespace>
|
||||
<AssemblyName>Spring.Northwind.Dao</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Dao\ICustomerDao.cs" />
|
||||
<Compile Include="Dao\IOrderDao.cs" />
|
||||
<Compile Include="Dao\IProductDao.cs" />
|
||||
<Compile Include="Domain\Customer.cs" />
|
||||
<Compile Include="Domain\Order.cs" />
|
||||
<Compile Include="Domain\OrderDetail.cs" />
|
||||
<Compile Include="Domain\Product.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Spring.Northwind.Service")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Spring.Northwind.Service")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2006")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("200c1a2d-2866-43eb-b5ff-04e67855ea7d")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,42 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System;
|
||||
|
||||
using Common.Logging;
|
||||
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Service
|
||||
{
|
||||
public class FedExShippingService : IShippingService
|
||||
{
|
||||
protected static readonly ILog log = LogManager.GetLogger(typeof (FedExShippingService));
|
||||
|
||||
public void ShipOrder(Order order)
|
||||
{
|
||||
log.Info("Shipping order id = " + order.Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
||||
using Spring.Transaction.Interceptor;
|
||||
|
||||
using Spring.Northwind.Dao;
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Service
|
||||
{
|
||||
public class FulfillmentService : IFulfillmentService
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private IProductDao productDao;
|
||||
|
||||
private ICustomerDao customerDao;
|
||||
|
||||
private IOrderDao orderDao;
|
||||
|
||||
private IShippingService shippingService;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
public IProductDao ProductDao
|
||||
{
|
||||
get { return productDao; }
|
||||
set { productDao = value; }
|
||||
}
|
||||
|
||||
public IOrderDao OrderDao
|
||||
{
|
||||
get { return orderDao; }
|
||||
set { orderDao = value; }
|
||||
}
|
||||
|
||||
public ICustomerDao CustomerDao
|
||||
{
|
||||
get { return customerDao; }
|
||||
set { customerDao = value; }
|
||||
}
|
||||
|
||||
public IShippingService ShippingService
|
||||
{
|
||||
get { return shippingService; }
|
||||
set { shippingService = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
|
||||
|
||||
[Transaction(ReadOnly=false)]
|
||||
public void ProcessCustomer(string customerId)
|
||||
{
|
||||
//Find all orders for customer
|
||||
Customer customer = CustomerDao.FindById(customerId);
|
||||
|
||||
foreach (Order order in customer.Orders)
|
||||
{
|
||||
//Validate Order
|
||||
Validate(order);
|
||||
|
||||
//Ship with external shipping service
|
||||
ShippingService.ShipOrder(order);
|
||||
|
||||
//Update shipping date
|
||||
order.ShippedDate = DateTime.Now;
|
||||
|
||||
//Update shipment date
|
||||
OrderDao.SaveOrUpdate(order);
|
||||
|
||||
//Other operations...Decrease product quantity... etc
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void Validate(Order order)
|
||||
{
|
||||
|
||||
//TODO throw exception on error.
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Service
|
||||
{
|
||||
public interface IFulfillmentService
|
||||
{
|
||||
void ProcessCustomer(string customerId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.Service
|
||||
{
|
||||
public interface IShippingService
|
||||
{
|
||||
void ShipOrder(Order order);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{9E15876F-E9E0-43B7-9874-B54F163757D6}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.Northwind</RootNamespace>
|
||||
<AssemblyName>Spring.Northwind.Service</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Common.Logging, Version=1.0.2.0, Culture=neutral, PublicKeyToken=af08829b84f0328e">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\Net\2.0\Common.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Data, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Service\FedExShippingService.cs" />
|
||||
<Compile Include="Service\IFulfillmentService.cs" />
|
||||
<Compile Include="Service\IShippingService.cs" />
|
||||
<Compile Include="Service\FulfillmentService.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Spring.Northwind.Dao.NHibernate\Spring.Northwind.Dao.NHibernate.csproj">
|
||||
<Project>{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}</Project>
|
||||
<Name>Spring.Northwind.Dao.NHibernate</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Spring.Northwind.Dao\Spring.Northwind.Dao.csproj">
|
||||
<Project>{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}</Project>
|
||||
<Name>Spring.Northwind.Dao</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,87 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{FD89FEBE-4914-45F3-9123-B2CB954810DD}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.Northwind.Web.References</RootNamespace>
|
||||
<AssemblyName>Spring.Northwind.Web.References</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>.</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>.</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="antlr.runtime, Version=2.7.6.2, Culture=neutral, PublicKeyToken=65e474d141e25e07, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\antlr.runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Castle.DynamicProxy, Version=1.1.5.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\Castle.DynamicProxy.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common.Logging, Version=1.2.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Common.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common.Logging.Log4Net, Version=1.2.0.2, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Common.Logging.Log4Net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Iesi.Collections, Version=1.0.0.3, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\Iesi.Collections.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\log4net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NHibernate, Version=1.2.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\NHibernate.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Core, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Data, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Data.NHibernate12, Version=1.1.1.20093, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Data.NHibernate12.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Web, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Web.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,8 @@
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
public interface ICustomerEditController
|
||||
{
|
||||
void EditCustomer(Customer customer);
|
||||
void Clear();
|
||||
Customer CurrentCustomer { get; }
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
|
||||
using System.Web;
|
||||
using NHibernate;
|
||||
using Spring.Data.NHibernate;
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
/// <author>erich.eichinger</author>
|
||||
/// <version>$Id: NHibernateCustomerEditController.cs,v 1.1 2007/09/29 21:32:09 oakinger Exp $</version>
|
||||
public class NHibernateCustomerEditController:ICustomerEditController
|
||||
{
|
||||
private readonly ISessionFactory sessionFactory;
|
||||
private Customer currentCustomer;
|
||||
|
||||
public NHibernateCustomerEditController(ISessionFactory sessionFactory)
|
||||
{
|
||||
this.sessionFactory = sessionFactory;
|
||||
}
|
||||
|
||||
private ISession Session
|
||||
{
|
||||
get
|
||||
{
|
||||
return SessionFactoryUtils.GetSession( sessionFactory,false );
|
||||
}
|
||||
}
|
||||
|
||||
public void EditCustomer(Customer customer)
|
||||
{
|
||||
currentCustomer = customer;
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
currentCustomer = null;
|
||||
}
|
||||
|
||||
public Customer CurrentCustomer
|
||||
{
|
||||
get
|
||||
{
|
||||
Customer customer = currentCustomer;
|
||||
Session.Lock(customer, LockMode.None);
|
||||
return customer;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
|
||||
<object id="CommonLoggingAroundAdvice" type="Spring.Aspects.Logging.CommonLoggingAroundAdvice, Spring.Aspects">
|
||||
<property name="Level" value="Info" />
|
||||
</object>
|
||||
|
||||
</objects>
|
||||
@@ -0,0 +1,21 @@
|
||||
<%@ Page Language="C#" CodeFile="CustomerEditor.aspx.cs" Inherits="CustomerEditor" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head runat="server">
|
||||
<title>Untitled Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<spring:DataBindingPanel runat="server">
|
||||
<table>
|
||||
<tr><td>ID:</td><td><asp:TextBox runat="server" BindingTarget="CurrentCustomer.Id" BindingDirection="TargetToSource" readonly="true" /></td></tr>
|
||||
<tr><td>Contact:</td><td><asp:TextBox runat="server" BindingTarget="CurrentCustomer.ContactName" /></td></tr>
|
||||
</table>
|
||||
</spring:DataBindingPanel>
|
||||
</div>
|
||||
<asp:Button runat="server" id="btnSave" Text="Save" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,69 @@
|
||||
using System;
|
||||
using System.Web;
|
||||
using Spring.Northwind.Dao;
|
||||
using Spring.Northwind.Domain;
|
||||
using Spring.Web.UI;
|
||||
|
||||
public partial class CustomerEditor : Page
|
||||
{
|
||||
private ICustomerEditController customerEditController;
|
||||
private ICustomerDao customerDao;
|
||||
|
||||
public ICustomerDao CustomerDao
|
||||
{
|
||||
set { this.customerDao = value; }
|
||||
}
|
||||
|
||||
public ICustomerEditController CustomerEditController
|
||||
{
|
||||
set { this.customerEditController = value; }
|
||||
}
|
||||
|
||||
public Customer CurrentCustomer
|
||||
{
|
||||
get
|
||||
{
|
||||
//return (Customer) Session[typeof(CustomerEditor).FullName + ".Customer"];
|
||||
return customerEditController.CurrentCustomer;
|
||||
}
|
||||
}
|
||||
|
||||
// public static void Edit( Customer customer )
|
||||
// {
|
||||
// HttpContext.Current.Session[typeof(CustomerEditor).FullName + ".Customer"] = customer;
|
||||
// }
|
||||
|
||||
public CustomerEditor()
|
||||
{
|
||||
this.InitializeControls+=new EventHandler(Page_InitializeControls);
|
||||
this.DataBound+=new EventHandler(Page_DataBound);
|
||||
this.DataUnbound+=new EventHandler(Page_DataUnbound);
|
||||
}
|
||||
|
||||
override protected void InitializeDataBindings()
|
||||
{
|
||||
base.InitializeDataBindings();
|
||||
|
||||
// do the "one time" setup for databinding
|
||||
}
|
||||
|
||||
private void Page_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
// perform custom tasks for binding data from model to the form
|
||||
}
|
||||
|
||||
private void Page_DataUnbound(object sender, EventArgs e)
|
||||
{
|
||||
// perform custom tasks for unbinding data from form to the model
|
||||
}
|
||||
|
||||
private void Page_InitializeControls(object sender, EventArgs e)
|
||||
{
|
||||
btnSave.Click += new EventHandler(BtnSave_Click);
|
||||
}
|
||||
|
||||
private void BtnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
customerDao.SaveOrUpdate(CurrentCustomer);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<%@ Page Language="C#" CodeFile="CustomerList.aspx.cs" Inherits="CustomerList" %>
|
||||
<%@ Reference page="CustomerEditor.aspx" %>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head runat="server">
|
||||
<title>Untitled Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<asp:DataGrid id="customerList" runat="server"
|
||||
AllowPaging="true"
|
||||
AllowSorting="false"
|
||||
BorderColor="black"
|
||||
BorderWidth="1"
|
||||
CellPadding="3"
|
||||
AutoGenerateColumns="false"
|
||||
ShowFooter="true"
|
||||
>
|
||||
<Columns>
|
||||
|
||||
<asp:BoundColumn HeaderText="Id" DataField="ID" />
|
||||
<asp:BoundColumn HeaderText="Name" DataField="ContactName" />
|
||||
<asp:BoundColumn HeaderText="Company" DataField="CompanyName"/>
|
||||
<asp:ButtonColumn CommandName="EditCustomer" Text="Edit" />
|
||||
<asp:ButtonColumn CommandName="ViewOrders" Text="Orders" />
|
||||
|
||||
</Columns>
|
||||
</asp:DataGrid>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,96 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Web.UI.WebControls;
|
||||
using Spring.Northwind.Dao;
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
public partial class CustomerList : Spring.Web.UI.Page
|
||||
{
|
||||
private ICustomerEditController customerEditController;
|
||||
private ICustomerDao customerDao;
|
||||
|
||||
public ICustomerDao CustomerDao
|
||||
{
|
||||
set { this.customerDao = value; }
|
||||
}
|
||||
|
||||
public ICustomerEditController CustomerEditController
|
||||
{
|
||||
set { this.customerEditController = value; }
|
||||
}
|
||||
|
||||
public Customer SelectedCustomer
|
||||
{
|
||||
get
|
||||
{
|
||||
return (Customer) this.customerList.SelectedItem.DataItem;
|
||||
}
|
||||
}
|
||||
|
||||
public CustomerList()
|
||||
{
|
||||
this.InitializeControls+=new EventHandler(Page_InitializeControls);
|
||||
this.DataBound+=new EventHandler(Page_DataBound);
|
||||
this.DataUnbound+=new EventHandler(Page_DataUnbound);
|
||||
}
|
||||
|
||||
override protected void InitializeDataBindings()
|
||||
{
|
||||
base.InitializeDataBindings();
|
||||
|
||||
// do the "one time" setup for databinding
|
||||
}
|
||||
|
||||
private void Page_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
// perform custom tasks for binding data from model to the form
|
||||
}
|
||||
|
||||
private void Page_DataUnbound(object sender, EventArgs e)
|
||||
{
|
||||
// perform custom tasks for unbinding data from form to the model
|
||||
}
|
||||
|
||||
private void Page_InitializeControls(object sender, EventArgs e)
|
||||
{
|
||||
// create/initialize controls here
|
||||
customerList.DataSource = customerDao.FindAll();
|
||||
customerList.ItemCommand+=new DataGridCommandEventHandler(CustomerList_ItemCommand);
|
||||
customerList.PageIndexChanged+=new DataGridPageChangedEventHandler(CustomerList_PageIndexChanged);
|
||||
if (!IsPostBack)
|
||||
{
|
||||
customerList.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
customerList.ItemCreated+=new DataGridItemEventHandler(this.CustomerList_ItemCreated);
|
||||
}
|
||||
}
|
||||
|
||||
private void CustomerList_PageIndexChanged(object source, DataGridPageChangedEventArgs e)
|
||||
{
|
||||
customerList.CurrentPageIndex = e.NewPageIndex;
|
||||
customerList.DataBind();
|
||||
}
|
||||
|
||||
private void CustomerList_ItemCommand(object source, DataGridCommandEventArgs e)
|
||||
{
|
||||
switch(e.CommandName)
|
||||
{
|
||||
case "ViewOrders":
|
||||
case "EditCustomer":
|
||||
customerList.SelectedIndex = e.Item.ItemIndex;
|
||||
customerEditController.EditCustomer(this.SelectedCustomer);
|
||||
SetResult(e.CommandName);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void CustomerList_ItemCreated(object sender, DataGridItemEventArgs e)
|
||||
{
|
||||
if(e.Item.DataSetIndex > -1)
|
||||
{
|
||||
e.Item.DataItem = ((IList) customerList.DataSource)[e.Item.DataSetIndex];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CustomerOrders.aspx.cs" Inherits="CustomerOrders" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head runat="server">
|
||||
<title>Untitled Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div>
|
||||
<asp:DataGrid id="customerOrders" runat="server"
|
||||
AllowPaging="false"
|
||||
AllowSorting="false"
|
||||
BorderColor="black"
|
||||
BorderWidth="1"
|
||||
CellPadding="3"
|
||||
AutoGenerateColumns="false"
|
||||
ShowFooter="true"
|
||||
>
|
||||
<Columns>
|
||||
|
||||
<asp:BoundColumn HeaderText="OrderID" DataField="ID" />
|
||||
<asp:BoundColumn HeaderText="OrderDate" DataField="OrderDate" />
|
||||
<asp:BoundColumn HeaderText="ShippedDate" DataField="ShippedDate"/>
|
||||
|
||||
</Columns>
|
||||
</asp:DataGrid>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Web.UI.WebControls;
|
||||
using Spring.Northwind.Domain;
|
||||
|
||||
public partial class CustomerOrders:Spring.Web.UI.Page
|
||||
{
|
||||
private ICustomerEditController customerEditController;
|
||||
|
||||
public ICustomerEditController CustomerEditController
|
||||
{
|
||||
set { this.customerEditController = value; }
|
||||
}
|
||||
|
||||
public Customer SelectedCustomer
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.customerEditController.CurrentCustomer;
|
||||
}
|
||||
}
|
||||
|
||||
public CustomerOrders()
|
||||
{
|
||||
this.InitializeControls+=new EventHandler(Page_InitializeControls);
|
||||
this.DataBound+=new EventHandler(Page_DataBound);
|
||||
this.DataUnbound+=new EventHandler(Page_DataUnbound);
|
||||
}
|
||||
|
||||
override protected void InitializeDataBindings()
|
||||
{
|
||||
base.InitializeDataBindings();
|
||||
|
||||
// do the "one time" setup for databinding
|
||||
}
|
||||
|
||||
private void Page_DataBound(object sender, EventArgs e)
|
||||
{
|
||||
// perform custom tasks for binding data from model to the form
|
||||
}
|
||||
|
||||
private void Page_DataUnbound(object sender, EventArgs e)
|
||||
{
|
||||
// perform custom tasks for unbinding data from form to the model
|
||||
}
|
||||
|
||||
private void Page_InitializeControls(object sender, EventArgs e)
|
||||
{
|
||||
// create/initialize controls here
|
||||
customerOrders.DataSource = SelectedCustomer.Orders;
|
||||
if (!IsPostBack)
|
||||
{
|
||||
customerOrders.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
customerOrders.ItemCreated+=new DataGridItemEventHandler( this.CustomerList_ItemCreated );
|
||||
}
|
||||
}
|
||||
|
||||
private void CustomerList_ItemCreated(object sender, DataGridItemEventArgs e)
|
||||
{
|
||||
if(e.Item.DataSetIndex > -1)
|
||||
{
|
||||
e.Item.DataItem = ((IList)customerOrders.DataSource)[e.Item.DataSetIndex];
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net"
|
||||
xmlns:db="http://www.springframework.net/database">
|
||||
|
||||
<!-- Referenced by main application context configuration file -->
|
||||
<description>
|
||||
The Northwind object definitions for the Data Access Objects.
|
||||
</description>
|
||||
|
||||
<!-- Property placeholder configurer for database settings -->
|
||||
<object type="Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer, Spring.Core">
|
||||
<property name="ConfigSections" value="databaseSettings"/>
|
||||
</object>
|
||||
|
||||
<!-- Database and NHibernate Configuration -->
|
||||
<db:provider id="DbProvider"
|
||||
provider="SqlServer-2.0"
|
||||
connectionString="Data Source=.\SQLExpress;Integrated Security=true;User Instance=true;AttachDBFilename=|DataDirectory|\Northwnd.mdf"/>
|
||||
|
||||
<object id="NHibernateSessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate12">
|
||||
<property name="DbProvider" ref="DbProvider"/>
|
||||
<property name="MappingAssemblies">
|
||||
<list>
|
||||
<value>Spring.Northwind.Dao.NHibernate</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="HibernateProperties">
|
||||
<dictionary>
|
||||
|
||||
<entry key="hibernate.connection.provider"
|
||||
value="NHibernate.Connection.DriverConnectionProvider"/>
|
||||
|
||||
<entry key="hibernate.dialect"
|
||||
value="NHibernate.Dialect.MsSql2000Dialect"/>
|
||||
|
||||
<entry key="hibernate.connection.driver_class"
|
||||
value="NHibernate.Driver.SqlClientDriver"/>
|
||||
|
||||
</dictionary>
|
||||
</property>
|
||||
|
||||
</object>
|
||||
|
||||
|
||||
<object id="HibernateTransactionManager"
|
||||
type="Spring.Data.NHibernate.HibernateTransactionManager, Spring.Data.NHibernate12">
|
||||
|
||||
<property name="DbProvider" ref="DbProvider"/>
|
||||
<property name="SessionFactory" ref="NHibernateSessionFactory"/>
|
||||
|
||||
</object>
|
||||
|
||||
<object id="HibernateTemplate" type="Spring.Data.NHibernate.HibernateTemplate">
|
||||
<property name="SessionFactory" ref="NHibernateSessionFactory" />
|
||||
<property name="TemplateFlushMode" value="Auto" />
|
||||
<property name="CacheQueries" value="true" />
|
||||
</object>
|
||||
|
||||
<!-- Data Access Objects -->
|
||||
<object id="CustomerDao" type="Spring.Northwind.Dao.NHibernate.HibernateCustomerDao, Spring.Northwind.Dao.NHibernate">
|
||||
<property name="HibernateTemplate" ref="HibernateTemplate"/>
|
||||
</object>
|
||||
|
||||
<object id="OrderDao" type="Spring.Northwind.Dao.NHibernate.HibernateOrderDao, Spring.Northwind.Dao.NHibernate">
|
||||
<property name="HibernateTemplate" ref="HibernateTemplate"/>
|
||||
</object>
|
||||
|
||||
|
||||
</objects>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
<!-- The rest of the config file is common no matter how many objects you add -->
|
||||
<!-- that you would like to have declarative tx management applied to -->
|
||||
<object id="autoProxyCreator"
|
||||
type="Spring.Aop.Framework.AutoProxy.DefaultAdvisorAutoProxyCreator, Spring.Aop">
|
||||
</object>
|
||||
|
||||
<object id="transactionAdvisor"
|
||||
type="Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor, Spring.Data">
|
||||
<property name="TransactionInterceptor" ref="transactionInterceptor"/>
|
||||
</object>
|
||||
|
||||
<!-- Transaction Interceptor -->
|
||||
<object id="transactionInterceptor"
|
||||
type="Spring.Transaction.Interceptor.TransactionInterceptor, Spring.Data">
|
||||
<property name="TransactionManager" ref="HibernateTransactionManager"/>
|
||||
<!-- note do not have converter from string to this property type registered -->
|
||||
<property name="TransactionAttributeSource" ref="attributeTransactionAttributeSource"/>
|
||||
</object>
|
||||
|
||||
<object id="attributeTransactionAttributeSource"
|
||||
type="Spring.Transaction.Interceptor.AttributesTransactionAttributeSource, Spring.Data">
|
||||
</object>
|
||||
</objects>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
|
||||
<object name="autoProxyCreator"
|
||||
type="Spring.Aop.Framework.AutoProxy.ObjectNameAutoProxyCreator, Spring.Aop">
|
||||
|
||||
<property name="InterceptorNames" value="transactionInterceptor"/>
|
||||
<property name="ObjectNames">
|
||||
<list>
|
||||
<ref object="FulfillmentService"/>
|
||||
</list>
|
||||
</property>
|
||||
</object>
|
||||
|
||||
<object id="transactionInterceptor"
|
||||
type="Spring.Transaction.Interceptor.TransactionInterceptor, Spring.Data">
|
||||
<property name="TransactionManager" ref="HibernateTransactionManager"/>
|
||||
<!-- note do not have converter from string to this property type registered -->
|
||||
<!-- so useing a ref to the source of transaction options -->
|
||||
<property name="TransactionAttributeSource" ref="attributeTransactionAttributeSource"/>
|
||||
</object>
|
||||
|
||||
<object id="attributeTransactionAttributeSource"
|
||||
type="Spring.Transaction.Interceptor.AttributesTransactionAttributeSource, Spring.Data">
|
||||
</object>
|
||||
|
||||
<!--
|
||||
<object name="methodMapTransactionAttributeSource"
|
||||
type="Spring.Transaction.Interceptor.MethodMapTransactionAttributeSource, Spring.Data">
|
||||
<property name="MethodMap">
|
||||
<dictionary>
|
||||
<entry key="Spring.Northwind.Service.FulfillmentService.ProcessCustomer, Spring.Northwind.Service"
|
||||
value="PROPAGATION_REQUIRED"/>
|
||||
</dictionary>
|
||||
</property>
|
||||
</object>
|
||||
-->
|
||||
</objects>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
|
||||
<description>
|
||||
Transactional Proxy for FulfillmentService using the TransactionProxyFactory
|
||||
</description>
|
||||
|
||||
|
||||
<!-- Note if you have many of these objects with similar configuration use -->
|
||||
<!-- an abstract parent object to encapsulate common settings -->
|
||||
|
||||
<object id="TxProxyConfigurationTemplate" abstract="true"
|
||||
type="Spring.Transaction.Interceptor.TransactionProxyFactoryObject, Spring.Data">
|
||||
|
||||
<property name="PlatformTransactionManager" ref="HibernateTransactionManager"/>
|
||||
|
||||
<property name="TransactionAttributes">
|
||||
<name-values>
|
||||
<!-- Add common methods across your services here -->
|
||||
<add key="Process*" value="PROPAGATION_REQUIRED"/>
|
||||
<!--
|
||||
<add key="Delete*" value="PROPAGATION_REQUIRED"/>
|
||||
-->
|
||||
</name-values>
|
||||
</property>
|
||||
<!-- note you can use alias names so that this configuration file is -->
|
||||
<!-- not dependent on the precise object name of the logging advice -->
|
||||
<!-- defined in Aspects.xml -->
|
||||
<property name="PreInterceptors" ref="CommonLoggingAroundAdvice"/>
|
||||
</object>
|
||||
|
||||
|
||||
<object id="FulfillmentServiceUsingTxPFO" parent="TxProxyConfigurationTemplate">
|
||||
|
||||
<!-- Note: would likely use an anonymous inner object instead of a reference -->
|
||||
<!-- to ensure that no one can access an unadvised object -->
|
||||
<property name="Target" ref="FulfillmentService"/>
|
||||
|
||||
</object>
|
||||
</objects>
|
||||
@@ -0,0 +1,2 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
|
||||
<%Response.Redirect("CustomerList.aspx");%>
|
||||
@@ -0,0 +1,49 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Spring.Northwind.Dao;
|
||||
using Spring.Northwind.Domain;
|
||||
using Spring.Northwind.Service;
|
||||
|
||||
public partial class _Default : Spring.Web.UI.Page
|
||||
{
|
||||
private ICustomerDao customerDao;
|
||||
private IFulfillmentService fulfillmentService;
|
||||
|
||||
public IFulfillmentService FulfillmentService
|
||||
{
|
||||
set { this.fulfillmentService = value; }
|
||||
}
|
||||
|
||||
public ICustomerDao CustomerDao
|
||||
{
|
||||
set { this.customerDao = value; }
|
||||
}
|
||||
|
||||
protected void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
ProcessCustomer();
|
||||
}
|
||||
|
||||
public void ProcessCustomer()
|
||||
{
|
||||
string customerId = "ERNSH";
|
||||
|
||||
// check, if exists
|
||||
Customer customer = customerDao.FindById(customerId);
|
||||
|
||||
//Find all orders for customer and ship them
|
||||
this.fulfillmentService.ProcessCustomer(customer.Id);
|
||||
//assertions....
|
||||
|
||||
// prepare for display - note that OrderDetails are loaded lazy here!
|
||||
foreach (Order order in customer.Orders)
|
||||
{
|
||||
Debug.Assert(order.OrderDetails.Count > 0);
|
||||
foreach(OrderDetail details in order.OrderDetails)
|
||||
{
|
||||
details.Quantity = details.Quantity - 1;
|
||||
// do something here
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<%@ Import namespace="log4net"%>
|
||||
<%@ Import namespace="log4net.Config"%>
|
||||
<%@ Application Language="C#" %>
|
||||
|
||||
<script runat="server">
|
||||
|
||||
void Application_Start(object sender, EventArgs e)
|
||||
{
|
||||
// Code that runs on application startup
|
||||
}
|
||||
|
||||
void Application_End(object sender, EventArgs e)
|
||||
{
|
||||
// Code that runs on application shutdown
|
||||
}
|
||||
|
||||
void Application_Error(object sender, EventArgs e)
|
||||
{
|
||||
// Code that runs when an unhandled error occurs
|
||||
|
||||
}
|
||||
|
||||
void Session_Start(object sender, EventArgs e)
|
||||
{
|
||||
// Code that runs when a new session is started
|
||||
|
||||
}
|
||||
|
||||
void Session_End(object sender, EventArgs e)
|
||||
{
|
||||
// Code that runs when a session ends.
|
||||
// Note: The Session_End event is raised only when the sessionstate mode
|
||||
// is set to InProc in the Web.config file. If session mode is set to StateServer
|
||||
// or SQLServer, the event is not raised.
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<log4net debug="false">
|
||||
|
||||
<appender name="AspNetTraceAppender" type="log4net.Appender.AspNetTraceAppender">
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<conversionPattern value="[%thread] %-5level - %message" />
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
|
||||
<file value="Logs/log.txt" />
|
||||
<appendToFile value="true" />
|
||||
<rollingStyle value="Size" />
|
||||
<maxSizeRollBackups value="10" />
|
||||
<maximumFileSize value="100KB" />
|
||||
<staticLogFileName value="true" />
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
<appender name="TraceAppender" type="log4net.Appender.TraceAppender">
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<conversionPattern value="%-5level %M - %message%newline" />
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
<!-- Set default logging level to DEBUG -->
|
||||
<root>
|
||||
<level value="DEBUG" />
|
||||
<!--<appender-ref ref="AspNetTraceAppender" />-->
|
||||
<!--<appender-ref ref="TraceAppender" />-->
|
||||
<appender-ref ref="RollingFileAppender" />
|
||||
</root>
|
||||
<!--
|
||||
In Spring.NET there is a 1-1 correspondence between the logger name and
|
||||
the namespace of the class doing the logging...
|
||||
-->
|
||||
<logger name="Spring">
|
||||
<level value="DEBUG" />
|
||||
</logger>
|
||||
<logger name="NHibernate">
|
||||
<level value="INFO" />
|
||||
</logger>
|
||||
</log4net>
|
||||
@@ -0,0 +1,186 @@
|
||||
2008-04-04 17:21:13,343 [8] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Not closing pre-bound Hibernate Session after HibernateTemplate
|
||||
2008-04-04 17:21:13,390 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:13,390 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:13,390 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:13,390 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@F15783] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [8]
|
||||
2008-04-04 17:21:13,390 [8] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:13,390 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:21:13,390 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:13,390 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:13,390 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@1EA711C] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [4]
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolved url '/Spring.Northwind.Web/CustomerOrders.aspx' from reusable handler cache
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerOrders.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerOrders.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerOrders.aspx'.
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerOrders.aspx
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customerorders_aspx' using definition '/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerOrders.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerEditController'.
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@1EA711C] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:13,406 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:13,406 [4] INFO NHibernate.Loader.Loader [(null)] - SELECT orders0_.CustomerID as CustomerID__1_, orders0_.OrderID as OrderID1_, orders0_.OrderID as OrderID0_0_, orders0_.OrderDate as OrderDate0_0_, orders0_.RequiredDate as Required3_0_0_, orders0_.ShippedDate as ShippedD4_0_0_, orders0_.ShipName as ShipName0_0_, orders0_.ShipAddress as ShipAddr6_0_0_, orders0_.ShipCity as ShipCity0_0_, orders0_.ShipRegion as ShipRegion0_0_, orders0_.ShipPostalCode as ShipPost9_0_0_, orders0_.ShipCountry as ShipCou10_0_0_ FROM Orders orders0_ WHERE orders0_.CustomerID=@p0
|
||||
2008-04-04 17:21:13,453 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:13,453 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:13,453 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:13,453 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@1EA711C] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [4]
|
||||
2008-04-04 17:21:13,453 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:13,453 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@30FCBCE] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [4]
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolved url '/Spring.Northwind.Web/CustomerList.aspx' from reusable handler cache
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerList.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerList.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerList.aspx'.
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerList.aspx
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customerlist_aspx' using definition '/CustomerList.aspx'
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerList.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerEditController'.
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerDao' in object '/CustomerList.aspx' to object 'CustomerDao'.
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerDao'.
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@30FCBCE] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@30FCBCE] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Found thread-bound Session for HibernateTemplate
|
||||
2008-04-04 17:21:14,703 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@30FCBCE] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:14,703 [4] INFO NHibernate.Loader.Loader [(null)] - SELECT this_.CustomerID as CustomerID1_0_, this_.CompanyName as CompanyN2_1_0_, this_.ContactName as ContactN3_1_0_, this_.ContactTitle as ContactT4_1_0_, this_.Address as Address1_0_, this_.City as City1_0_, this_.Region as Region1_0_, this_.PostalCode as PostalCode1_0_, this_.Country as Country1_0_, this_.Phone as Phone1_0_, this_.Fax as Fax1_0_ FROM Customers this_
|
||||
2008-04-04 17:21:14,718 [4] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Not closing pre-bound Hibernate Session after HibernateTemplate
|
||||
2008-04-04 17:21:14,734 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:14,734 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:14,734 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:14,734 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@30FCBCE] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [4]
|
||||
2008-04-04 17:21:14,734 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:14,734 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@16799F8] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [8]
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolved url '/Spring.Northwind.Web/CustomerList.aspx' from reusable handler cache
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerList.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerList.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerList.aspx'.
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerList.aspx
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customerlist_aspx' using definition '/CustomerList.aspx'
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerList.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerEditController'.
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerDao' in object '/CustomerList.aspx' to object 'CustomerDao'.
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerDao'.
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@16799F8] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@16799F8] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Found thread-bound Session for HibernateTemplate
|
||||
2008-04-04 17:21:16,062 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@16799F8] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:16,062 [8] INFO NHibernate.Loader.Loader [(null)] - SELECT this_.CustomerID as CustomerID1_0_, this_.CompanyName as CompanyN2_1_0_, this_.ContactName as ContactN3_1_0_, this_.ContactTitle as ContactT4_1_0_, this_.Address as Address1_0_, this_.City as City1_0_, this_.Region as Region1_0_, this_.PostalCode as PostalCode1_0_, this_.Country as Country1_0_, this_.Phone as Phone1_0_, this_.Fax as Fax1_0_ FROM Customers this_
|
||||
2008-04-04 17:21:16,078 [8] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Not closing pre-bound Hibernate Session after HibernateTemplate
|
||||
2008-04-04 17:21:16,125 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:16,125 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:16,125 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:16,125 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@16799F8] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [8]
|
||||
2008-04-04 17:21:16,125 [8] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:16,125 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@3154901] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [4]
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerEditor.aspx'
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - looking up web context 'spring.root' in WebContextCache
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - returning WebContextCache hit '[/spring.northwind.web]:WebApplicationContext(35298535)' for vpath 'spring.root'
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Web.Support.AbstractHandlerFactory [(null)] - GetHandler():looking up definition for app-relative url '/CustomerEditor.aspx'
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Web.Support.AbstractHandlerFactory [(null)] - GetHandler():found definition for page-url '/CustomerEditor.aspx'
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerEditor.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerEditor.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerEditor.aspx'.
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerEditor.aspx'
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerEditor.aspx
|
||||
2008-04-04 17:21:16,125 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customereditor_aspx' using definition '/CustomerEditor.aspx'
|
||||
2008-04-04 17:21:16,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerEditor.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:16,140 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerEditController'.
|
||||
2008-04-04 17:21:16,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerDao' in object '/CustomerEditor.aspx' to object 'CustomerDao'.
|
||||
2008-04-04 17:21:16,140 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerDao'.
|
||||
2008-04-04 17:21:16,156 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerEditor.aspx'
|
||||
2008-04-04 17:21:16,156 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerEditor.aspx'
|
||||
2008-04-04 17:21:16,156 [4] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - returning available advisors
|
||||
2008-04-04 17:21:16,468 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Candidate advisor [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] rejected for type [ASP.customereditor_aspx]
|
||||
2008-04-04 17:21:16,546 [4] DEBUG Spring.Web.UI.Controls.DataBindingPanel [(null)] - binding control 'ctl03' relative to '__Page' using expression 'FindControl('ctl03').Text'
|
||||
2008-04-04 17:21:16,640 [4] DEBUG Spring.Web.UI.Controls.DataBindingPanel [(null)] - binding control 'ctl04' relative to '__Page' using expression 'FindControl('ctl04').Text'
|
||||
2008-04-04 17:21:16,656 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@3154901] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:16,656 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:16,656 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:16,703 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@3154901] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:16,734 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:16,734 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:16,734 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:16,734 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@3154901] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [4]
|
||||
2008-04-04 17:21:16,734 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:16,734 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@62A49D] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [4]
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolved url '/Spring.Northwind.Web/CustomerList.aspx' from reusable handler cache
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerList.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerList.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerList.aspx'.
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerList.aspx
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customerlist_aspx' using definition '/CustomerList.aspx'
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerList.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerEditController'.
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerDao' in object '/CustomerList.aspx' to object 'CustomerDao'.
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerDao'.
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@62A49D] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@62A49D] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Found thread-bound Session for HibernateTemplate
|
||||
2008-04-04 17:21:18,734 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@62A49D] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:18,734 [4] INFO NHibernate.Loader.Loader [(null)] - SELECT this_.CustomerID as CustomerID1_0_, this_.CompanyName as CompanyN2_1_0_, this_.ContactName as ContactN3_1_0_, this_.ContactTitle as ContactT4_1_0_, this_.Address as Address1_0_, this_.City as City1_0_, this_.Region as Region1_0_, this_.PostalCode as PostalCode1_0_, this_.Country as Country1_0_, this_.Phone as Phone1_0_, this_.Fax as Fax1_0_ FROM Customers this_
|
||||
2008-04-04 17:21:18,750 [4] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Not closing pre-bound Hibernate Session after HibernateTemplate
|
||||
2008-04-04 17:21:18,765 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:18,765 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:18,765 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:18,765 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@62A49D] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [4]
|
||||
2008-04-04 17:21:18,765 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:18,765 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:21:21,609 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:21,609 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:21,609 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@1648030] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [8]
|
||||
2008-04-04 17:21:21,609 [8] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:21,609 [8] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolved url '/Spring.Northwind.Web/CustomerList.aspx' from reusable handler cache
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerList.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerList.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerList.aspx'.
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerList.aspx
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customerlist_aspx' using definition '/CustomerList.aspx'
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerList.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerEditController'.
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerDao' in object '/CustomerList.aspx' to object 'CustomerDao'.
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerDao'.
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@1648030] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@1648030] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Found thread-bound Session for HibernateTemplate
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@1648030] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:21,625 [8] INFO NHibernate.Loader.Loader [(null)] - SELECT this_.CustomerID as CustomerID1_0_, this_.CompanyName as CompanyN2_1_0_, this_.ContactName as ContactN3_1_0_, this_.ContactTitle as ContactT4_1_0_, this_.Address as Address1_0_, this_.City as City1_0_, this_.Region as Region1_0_, this_.PostalCode as PostalCode1_0_, this_.Country as Country1_0_, this_.Phone as Phone1_0_, this_.Fax as Fax1_0_ FROM Customers this_
|
||||
2008-04-04 17:21:21,625 [8] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Not closing pre-bound Hibernate Session after HibernateTemplate
|
||||
2008-04-04 17:21:21,687 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:21,687 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:21,687 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:21,687 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@1648030] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [8]
|
||||
2008-04-04 17:21:21,687 [8] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:21,687 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:24:18,796 [4] DEBUG Spring.Context.Support.WebSupportModule [(null)] - end session jffsz0255kqrjrgqyardrgs55 because of Removed
|
||||
2008-04-04 17:24:18,812 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'session'-scoped item cache
|
||||
@@ -0,0 +1,536 @@
|
||||
2008-04-04 17:19:12,203 [4] DEBUG Spring.Context.Support.WebSupportModule [(null)] - Set default resource protocol to 'web' and installed HttpContext-aware HybridContextStorage
|
||||
2008-04-04 17:20:59,156 [4] DEBUG Spring.Context.Support.WebSupportModule [(null)] - Set default resource protocol to 'web' and installed HttpContext-aware HybridContextStorage
|
||||
2008-04-04 17:20:59,312 [4] DEBUG Spring.Context.Support.WebSupportModule [(null)] - Initializing Application instance
|
||||
2008-04-04 17:20:59,562 [4] DEBUG Spring.Context.Support.WebSupportModule [(null)] - attaching to InProcSessionStateStore
|
||||
2008-04-04 17:20:59,578 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - BeforeFirstRequest:False
|
||||
2008-04-04 17:20:59,593 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - looking up web context 'spring.root' in WebContextCache
|
||||
2008-04-04 17:20:59,593 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - looking up web context 'spring.root' in ContextRegistry
|
||||
2008-04-04 17:20:59,593 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - web context for vpath 'spring.root' not found. Force creation using filepath '/Spring.Northwind.Web/dummy.context'
|
||||
2008-04-04 17:20:59,593 [4] DEBUG Spring.Context.Support.ContextHandler [(null)] - creating context '/spring.northwind.web'
|
||||
2008-04-04 17:20:59,625 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - hooking up event handlers
|
||||
2008-04-04 17:20:59,859 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loading XML object definitions from file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Aspects.xml]
|
||||
2008-04-04 17:20:59,875 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
|
||||
2008-04-04 17:20:59,875 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Loading object definitions.
|
||||
2008-04-04 17:20:59,890 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Loading object definitions...
|
||||
2008-04-04 17:20:59,890 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default lazy init 'false'.
|
||||
2008-04-04 17:20:59,890 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default dependency check 'none'.
|
||||
2008-04-04 17:20:59,890 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default autowire 'no'.
|
||||
2008-04-04 17:21:00,109 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'CommonLoggingAroundAdvice'.
|
||||
2008-04-04 17:21:00,109 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Found 1 <object> elements defining objects.
|
||||
2008-04-04 17:21:00,109 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loaded 1 bean definitions from location [~/Aspects.xml]
|
||||
2008-04-04 17:21:00,109 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loading XML object definitions from file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Dao.xml]
|
||||
2008-04-04 17:21:00,125 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
|
||||
2008-04-04 17:21:00,125 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Loading object definitions.
|
||||
2008-04-04 17:21:00,125 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Loading object definitions...
|
||||
2008-04-04 17:21:00,125 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default lazy init 'false'.
|
||||
2008-04-04 17:21:00,125 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default dependency check 'none'.
|
||||
2008-04-04 17:21:00,125 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default autowire 'no'.
|
||||
2008-04-04 17:21:00,125 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - No XML 'id' specified - using '' as the id and '' as aliases.
|
||||
2008-04-04 17:21:00,125 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Neither XML 'Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer' nor 'id' specified - using object class name [name] as the id.
|
||||
2008-04-04 17:21:00,125 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer'.
|
||||
2008-04-04 17:21:00,140 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'DbProvider'.
|
||||
2008-04-04 17:21:00,156 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'NHibernateSessionFactory'.
|
||||
2008-04-04 17:21:00,156 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'HibernateTransactionManager'.
|
||||
2008-04-04 17:21:00,156 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'HibernateTemplate'.
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'CustomerDao'.
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'OrderDao'.
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Found 8 <object> elements defining objects.
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loaded 7 bean definitions from location [~/Dao.xml]
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loading XML object definitions from file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Services.xml]
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Loading object definitions.
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Loading object definitions...
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default lazy init 'false'.
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default dependency check 'none'.
|
||||
2008-04-04 17:21:00,203 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default autowire 'no'.
|
||||
2008-04-04 17:21:00,265 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'FulfillmentService'.
|
||||
2008-04-04 17:21:00,265 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'ShippingService'.
|
||||
2008-04-04 17:21:00,265 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Attempting to import object definitions from 'DeclarativeServicesAttributeDriven.xml'.
|
||||
2008-04-04 17:21:00,281 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loading XML object definitions from file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\DeclarativeServicesAttributeDriven.xml]
|
||||
2008-04-04 17:21:00,281 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
|
||||
2008-04-04 17:21:00,281 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Loading object definitions.
|
||||
2008-04-04 17:21:00,281 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Loading object definitions...
|
||||
2008-04-04 17:21:00,281 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default lazy init 'false'.
|
||||
2008-04-04 17:21:00,281 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default dependency check 'none'.
|
||||
2008-04-04 17:21:00,281 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default autowire 'no'.
|
||||
2008-04-04 17:21:00,312 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'autoProxyCreator'.
|
||||
2008-04-04 17:21:00,312 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'transactionAdvisor'.
|
||||
2008-04-04 17:21:00,312 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'transactionInterceptor'.
|
||||
2008-04-04 17:21:00,312 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'attributeTransactionAttributeSource'.
|
||||
2008-04-04 17:21:00,312 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Found 14 <object> elements defining objects.
|
||||
2008-04-04 17:21:00,312 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Found 14 <object> elements defining objects.
|
||||
2008-04-04 17:21:00,312 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loaded 6 bean definitions from location [~/Services.xml]
|
||||
2008-04-04 17:21:00,312 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loading XML object definitions from file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]
|
||||
2008-04-04 17:21:00,328 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
|
||||
2008-04-04 17:21:00,328 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Loading object definitions.
|
||||
2008-04-04 17:21:00,328 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Loading object definitions...
|
||||
2008-04-04 17:21:00,328 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default lazy init 'false'.
|
||||
2008-04-04 17:21:00,328 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default dependency check 'none'.
|
||||
2008-04-04 17:21:00,328 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default autowire 'no'.
|
||||
2008-04-04 17:21:00,328 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - No XML 'id' specified - using 'CustomerEditController' as the id and '' as aliases.
|
||||
2008-04-04 17:21:00,328 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'CustomerEditController'.
|
||||
2008-04-04 17:21:00,328 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance 'Default.aspx'
|
||||
2008-04-04 17:21:00,328 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/Default.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - getting page type for Default.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/Default.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - got page type 'ASP.default_aspx' for vpath '/Spring.Northwind.Web/Default.aspx'
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id '/Default.aspx'.
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - No XML 'id' specified - using 'CustomerEditPage' as the id and '' as aliases.
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'CustomerEditPage'.
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance 'CustomerList.aspx'
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerList.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - getting page type for CustomerList.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerList.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - got page type 'ASP.customerlist_aspx' for vpath '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id '/CustomerList.aspx'.
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance 'CustomerEditor.aspx'
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerEditor.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - getting page type for CustomerEditor.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerEditor.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - got page type 'ASP.customereditor_aspx' for vpath '/Spring.Northwind.Web/CustomerEditor.aspx'
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id '/CustomerEditor.aspx'.
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance 'CustomerOrders.aspx'
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerOrders.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - getting page type for CustomerOrders.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerOrders.aspx
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - got page type 'ASP.customerorders_aspx' for vpath '/Spring.Northwind.Web/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id '/CustomerOrders.aspx'.
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Found 20 <object> elements defining objects.
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loaded 6 bean definitions from location [~/Web.xml]
|
||||
2008-04-04 17:21:02,718 [4] DEBUG Spring.Context.Support.AbstractXmlApplicationContext [(null)] - Refreshed ObjectFactory for application context '/spring.northwind.web'.
|
||||
2008-04-04 17:21:02,734 [4] DEBUG Spring.Context.Support.AbstractApplicationContext [(null)] - 20 objects defined in application context [/spring.northwind.web].
|
||||
2008-04-04 17:21:02,765 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer'
|
||||
2008-04-04 17:21:02,765 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer' with merged definition [Root web object with class [Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Dao.xml]].
|
||||
2008-04-04 17:21:02,781 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer'.
|
||||
2008-04-04 17:21:02,781 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:02,781 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer' using definition 'Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer'
|
||||
2008-04-04 17:21:02,828 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer'
|
||||
2008-04-04 17:21:02,828 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer'
|
||||
2008-04-04 17:21:02,859 [4] DEBUG Spring.Context.Support.AbstractApplicationContext [(null)] - processed 1 IFactoryObjectPostProcessors defined in application context [/spring.northwind.web].
|
||||
2008-04-04 17:21:02,859 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'autoProxyCreator'
|
||||
2008-04-04 17:21:02,859 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'autoProxyCreator' with merged definition [Root web object with class [Spring.Aop.Framework.AutoProxy.DefaultAdvisorAutoProxyCreator] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\DeclarativeServicesAttributeDriven.xml]].
|
||||
2008-04-04 17:21:02,859 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'autoProxyCreator'.
|
||||
2008-04-04 17:21:02,875 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'autoProxyCreator' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:02,875 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'proxyTargetType=False; proxyTargetAttributes=True; exposeProxy=False; isFrozen=False; optimize=False; aopProxyFactory=Spring.Aop.Framework.DynamicProxy.CachedAopProxyFactory; ' using definition 'autoProxyCreator'
|
||||
2008-04-04 17:21:02,875 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Setting the name property on the IObjectNameAware object 'autoProxyCreator'.
|
||||
2008-04-04 17:21:02,875 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Setting the ObjectFactory property on the IObjectFactoryAware object 'autoProxyCreator'.
|
||||
2008-04-04 17:21:02,875 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'autoProxyCreator'
|
||||
2008-04-04 17:21:02,875 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Calling AfterPropertiesSet() on object with name 'autoProxyCreator'.
|
||||
2008-04-04 17:21:02,875 [4] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - instantiating available advisors
|
||||
2008-04-04 17:21:02,875 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'transactionAdvisor'
|
||||
2008-04-04 17:21:02,875 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'transactionAdvisor' with merged definition [Root web object with class [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\DeclarativeServicesAttributeDriven.xml]].
|
||||
2008-04-04 17:21:02,875 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'transactionAdvisor'.
|
||||
2008-04-04 17:21:02,937 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'transactionAdvisor' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:02,937 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor' using definition 'transactionAdvisor'
|
||||
2008-04-04 17:21:02,937 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'TransactionInterceptor' in object 'transactionAdvisor' to object 'transactionInterceptor'.
|
||||
2008-04-04 17:21:02,937 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'transactionInterceptor'
|
||||
2008-04-04 17:21:02,937 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'transactionInterceptor' with merged definition [Root web object with class [Spring.Transaction.Interceptor.TransactionInterceptor] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\DeclarativeServicesAttributeDriven.xml]].
|
||||
2008-04-04 17:21:02,937 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'transactionInterceptor'.
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'transactionInterceptor' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Transaction.Interceptor.TransactionInterceptor' using definition 'transactionInterceptor'
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'TransactionManager' in object 'transactionInterceptor' to object 'HibernateTransactionManager'.
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'HibernateTransactionManager'
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'HibernateTransactionManager' with merged definition [Root web object with class [Spring.Data.NHibernate.HibernateTransactionManager] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Dao.xml]].
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'HibernateTransactionManager'.
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'HibernateTransactionManager' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Data.NHibernate.HibernateTransactionManager' using definition 'HibernateTransactionManager'
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'DbProvider' in object 'HibernateTransactionManager' to object 'DbProvider'.
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'DbProvider'
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'DbProvider' with merged definition [Root web object with class [Spring.Data.Common.DbProviderFactoryObject] defined in ].
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'DbProvider'.
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'DbProvider' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:02,953 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Data.Common.DbProviderFactoryObject' using definition 'DbProvider'
|
||||
2008-04-04 17:21:02,984 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'DbProvider'
|
||||
2008-04-04 17:21:02,984 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Calling AfterPropertiesSet() on object with name 'DbProvider'.
|
||||
2008-04-04 17:21:02,984 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'DbProvider'
|
||||
2008-04-04 17:21:02,984 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Object with name 'DbProvider' is a factory object.
|
||||
2008-04-04 17:21:03,000 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loading XML object definitions from assembly [Spring.Data, Version=1.1.1.20093, Culture=neutral, PublicKeyToken=null], resource [Spring.Data.Common.dbproviders.xml]
|
||||
2008-04-04 17:21:03,000 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Using the following XmlReader implementation : System.Xml.XsdValidatingReader
|
||||
2008-04-04 17:21:03,015 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Loading object definitions.
|
||||
2008-04-04 17:21:03,015 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Loading object definitions...
|
||||
2008-04-04 17:21:03,015 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default lazy init 'false'.
|
||||
2008-04-04 17:21:03,015 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default dependency check 'none'.
|
||||
2008-04-04 17:21:03,015 [4] DEBUG Spring.Objects.Factory.Xml.ObjectDefinitionParserHelper [(null)] - Default autowire 'no'.
|
||||
2008-04-04 17:21:03,015 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'SqlServer-1.1'.
|
||||
2008-04-04 17:21:03,015 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'SqlServer-2.0'.
|
||||
2008-04-04 17:21:03,015 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Registering alias 'System.Data.SqlClient' for object with name 'SqlServer-2.0'.
|
||||
2008-04-04 17:21:03,015 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'SqlServerCe-3.1'.
|
||||
2008-04-04 17:21:03,015 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Registering alias 'System.Data.SqlServerCe' for object with name 'SqlServerCe-3.1'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'OleDb-1.1'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'OleDb-2.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Registering alias 'System.Data.OleDb' for object with name 'OleDb-2.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'OracleClient-2.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Registering alias 'System.Data.OracleClient' for object with name 'OracleClient-2.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'OracleODP-2.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Registering alias 'Oracle.DataAccess.Client' for object with name 'OracleODP-2.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'MySql'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'MySql-1.0.9'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'MySql-5.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'MySql-5.0.8.1'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'MySql-5.1'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'MySql-5.1.4'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Registering alias 'MySql.Data.MySqlClient' for object with name 'MySql-5.1.4'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'Npgsql-1.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'Npgsql-2.0-beta1'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'DB2-9.0.0-1.1'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'DB2-9.0.0-2.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Registering alias 'IBM.Data.DB2' for object with name 'DB2-9.0.0-2.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'DB2-9.1.0-1.1'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'DB2-9.1.0.2'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Registering alias 'IBM.Data.DB2.9.1.0' for object with name 'DB2-9.1.0.2'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'iDB2-10.0.0.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'SQLite-1.0.43'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'SQLite-1.0.44'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'SQLite-1.0.47'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Registering alias 'System.Data.SQLite' for object with name 'SQLite-1.0.47'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'SybaseAse-12'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'SybaseAse-15'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'Odbc-1.1'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.ObjectsNamespaceParser [(null)] - Registering object definition with id 'Odbc-2.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Registering alias 'System.Data.Odbc' for object with name 'Odbc-2.0'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Xml.DefaultObjectDefinitionDocumentReader [(null)] - Found 27 <object> elements defining objects.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Objects.Factory.Support.AbstractObjectDefinitionReader [(null)] - Loaded 27 bean definitions from location [assembly://Spring.Data, Version=1.1.1.20093, Culture=neutral, PublicKeyToken=null/Spring.Data.Common/dbproviders.xml]
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Context.Support.AbstractXmlApplicationContext [(null)] - Refreshed ObjectFactory for application context 'DBPROVIDERFACTORY_CONTEXT'.
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Context.Support.AbstractApplicationContext [(null)] - 27 objects defined in application context [DBPROVIDERFACTORY_CONTEXT].
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Context.Support.AbstractApplicationContext [(null)] - processed 0 IFactoryObjectPostProcessors defined in application context [DBPROVIDERFACTORY_CONTEXT].
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Context.Support.AbstractApplicationContext [(null)] - processed 0 IObjectPostProcessors defined in application context [DBPROVIDERFACTORY_CONTEXT].
|
||||
2008-04-04 17:21:03,031 [4] DEBUG Spring.Context.Support.AbstractApplicationContext [(null)] - No IEventRegistry found with name 'eventRegistry' : using default 'Spring.Objects.Events.Support.EventRegistry'.
|
||||
2008-04-04 17:21:03,046 [4] DEBUG Spring.Context.Support.AbstractApplicationContext [(null)] - No IMessageSource found with name 'messageSource' : using default 'StaticMessageSource : '.
|
||||
2008-04-04 17:21:03,046 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Pre-instantiating singletons in factory [Spring.Objects.Factory.Support.DefaultListableObjectFactory]
|
||||
2008-04-04 17:21:03,046 [4] INFO Spring.Data.Common.DbProviderFactory [(null)] - 27 DbProviders Available. [SqlServer-1.1,SqlServer-2.0,SqlServerCe-3.1,OleDb-1.1,OleDb-2.0,OracleClient-2.0,OracleODP-2.0,MySql,MySql-1.0.9,MySql-5.0,MySql-5.0.8.1,MySql-5.1,MySql-5.1.4,Npgsql-1.0,Npgsql-2.0-beta1,DB2-9.0.0-1.1,DB2-9.0.0-2.0,DB2-9.1.0-1.1,DB2-9.1.0.2,iDB2-10.0.0.0,SQLite-1.0.43,SQLite-1.0.44,SQLite-1.0.47,SybaseAse-12,SybaseAse-15,Odbc-1.1,Odbc-2.0]
|
||||
2008-04-04 17:21:03,046 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'SqlServer-2.0' with merged definition [Root web object with class [Spring.Data.Common.DbProvider] defined in assembly [Spring.Data, Version=1.1.1.20093, Culture=neutral, PublicKeyToken=null], resource [Spring.Data.Common.dbproviders.xml]].
|
||||
2008-04-04 17:21:03,046 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'SqlServer-2.0'.
|
||||
2008-04-04 17:21:03,062 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '(inner object)' with merged definition [Root web object with class [Spring.Data.Common.DbMetadata] defined in assembly [Spring.Data, Version=1.1.1.20093, Culture=neutral, PublicKeyToken=null], resource [Spring.Data.Common.dbproviders.xml]].
|
||||
2008-04-04 17:21:03,062 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '(inner object)'.
|
||||
2008-04-04 17:21:03,078 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Object '(inner object)' instantiated via constructor [Void .ctor(System.String, System.String, System.Type, System.Type, System.Type, System.Type, System.Type, System.String, System.Type, System.String, System.String, System.String, System.Type, Boolean, Boolean, Boolean, System.String)].
|
||||
2008-04-04 17:21:03,078 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Data.Common.DbMetadata' using definition '(inner object)'
|
||||
2008-04-04 17:21:03,125 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '(inner object)'
|
||||
2008-04-04 17:21:03,125 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '(inner object)'
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Object 'SqlServer-2.0' instantiated via constructor [Void .ctor(Spring.Data.Common.IDbMetadata)].
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Data.Common.DbProvider' using definition 'SqlServer-2.0'
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'SqlServer-2.0'
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'SqlServer-2.0'
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'DbProvider'
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'SessionFactory' in object 'HibernateTransactionManager' to object 'NHibernateSessionFactory'.
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'NHibernateSessionFactory'
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'NHibernateSessionFactory' with merged definition [Root web object with class [Spring.Data.NHibernate.LocalSessionFactoryObject] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Dao.xml]].
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'NHibernateSessionFactory'.
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'NHibernateSessionFactory' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Data.NHibernate.LocalSessionFactoryObject' using definition 'NHibernateSessionFactory'
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'DbProvider' in object 'NHibernateSessionFactory' to object 'DbProvider'.
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'DbProvider'.
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Object with name 'DbProvider' is a factory object.
|
||||
2008-04-04 17:21:03,140 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'DbProvider'
|
||||
2008-04-04 17:21:03,171 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'NHibernateSessionFactory'
|
||||
2008-04-04 17:21:03,171 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Calling AfterPropertiesSet() on object with name 'NHibernateSessionFactory'.
|
||||
2008-04-04 17:21:03,250 [4] INFO NHibernate.Cfg.Environment [(null)] - NHibernate 1.2.1.4000 (1.2.1.4000)
|
||||
2008-04-04 17:21:03,250 [4] INFO NHibernate.Cfg.Environment [(null)] - nhibernate section not found in application configuration file
|
||||
2008-04-04 17:21:03,265 [4] INFO NHibernate.Cfg.Environment [(null)] - Bytecode provider name : lcg
|
||||
2008-04-04 17:21:03,265 [4] INFO NHibernate.Cfg.Environment [(null)] - Using reflection optimizer
|
||||
2008-04-04 17:21:03,296 [4] WARN Spring.Data.NHibernate.LocalSessionFactoryObject [(null)] - Overriding use of Spring's Hibernate Connection Provider with [NHibernate.Connection.DriverConnectionProvider]
|
||||
2008-04-04 17:21:03,296 [4] INFO NHibernate.Cfg.Configuration [(null)] - Searching for mapped documents in assembly: Spring.Northwind.Dao.NHibernate
|
||||
2008-04-04 17:21:03,296 [4] INFO NHibernate.Cfg.Configuration [(null)] - Mapping resource: Spring.Northwind.Mappings.Order.hbm.xml
|
||||
2008-04-04 17:21:03,406 [4] INFO NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
|
||||
2008-04-04 17:21:03,484 [4] INFO NHibernate.Cfg.HbmBinder [(null)] - Mapping class: Spring.Northwind.Domain.Order -> Orders
|
||||
2008-04-04 17:21:03,609 [4] INFO NHibernate.Cfg.Configuration [(null)] - Mapping resource: Spring.Northwind.Mappings.Customer.hbm.xml
|
||||
2008-04-04 17:21:03,609 [4] INFO NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
|
||||
2008-04-04 17:21:03,609 [4] INFO NHibernate.Cfg.HbmBinder [(null)] - Mapping class: Spring.Northwind.Domain.Customer -> Customers
|
||||
2008-04-04 17:21:03,609 [4] INFO NHibernate.Cfg.Configuration [(null)] - Mapping resource: Spring.Northwind.Mappings.OrderDetail.hbm.xml
|
||||
2008-04-04 17:21:03,609 [4] INFO NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
|
||||
2008-04-04 17:21:03,609 [4] INFO NHibernate.Cfg.HbmBinder [(null)] - Mapping class: Spring.Northwind.Domain.OrderDetail -> [Order Details]
|
||||
2008-04-04 17:21:03,734 [4] INFO Spring.Data.NHibernate.LocalSessionFactoryObject [(null)] - Building new Hibernate SessionFactory
|
||||
2008-04-04 17:21:03,734 [4] INFO NHibernate.Cfg.Configuration [(null)] - checking mappings queue
|
||||
2008-04-04 17:21:03,734 [4] INFO NHibernate.Cfg.Configuration [(null)] - processing one-to-many association mappings
|
||||
2008-04-04 17:21:03,734 [4] INFO NHibernate.Cfg.HbmBinder [(null)] - mapping collection: Spring.Northwind.Domain.Order.OrderDetails -> [Order Details]
|
||||
2008-04-04 17:21:03,734 [4] INFO NHibernate.Cfg.HbmBinder [(null)] - mapping collection: Spring.Northwind.Domain.Customer.Orders -> Orders
|
||||
2008-04-04 17:21:03,734 [4] INFO NHibernate.Cfg.Configuration [(null)] - processing one-to-one association property references
|
||||
2008-04-04 17:21:03,734 [4] INFO NHibernate.Cfg.Configuration [(null)] - processing foreign key constraints
|
||||
2008-04-04 17:21:03,765 [4] INFO NHibernate.Dialect.Dialect [(null)] - Using dialect: NHibernate.Dialect.MsSql2000Dialect
|
||||
2008-04-04 17:21:03,765 [4] INFO NHibernate.Connection.ConnectionProviderFactory [(null)] - Initializing connection provider: NHibernate.Connection.DriverConnectionProvider
|
||||
2008-04-04 17:21:03,765 [4] INFO NHibernate.Connection.ConnectionProvider [(null)] - Configuring ConnectionProvider
|
||||
2008-04-04 17:21:03,765 [4] INFO NHibernate.Cfg.SettingsFactory [(null)] - Transaction factory: NHibernate.Transaction.AdoNetTransactionFactory
|
||||
2008-04-04 17:21:03,765 [4] INFO NHibernate.Cfg.SettingsFactory [(null)] - Optimize cache for minimal puts: False
|
||||
2008-04-04 17:21:03,765 [4] INFO NHibernate.Cfg.SettingsFactory [(null)] - Connection release mode: auto
|
||||
2008-04-04 17:21:03,765 [4] INFO NHibernate.Cfg.SettingsFactory [(null)] - Query translator: NHibernate.Hql.Classic.ClassicQueryTranslatorFactory
|
||||
2008-04-04 17:21:03,781 [4] INFO NHibernate.Cfg.SettingsFactory [(null)] - Query language substitutions: {}
|
||||
2008-04-04 17:21:03,781 [4] INFO NHibernate.Cfg.SettingsFactory [(null)] - cache provider: NHibernate.Cache.NoCacheProvider, NHibernate, Version=1.2.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4
|
||||
2008-04-04 17:21:03,828 [4] INFO NHibernate.Impl.SessionFactoryImpl [(null)] - building session factory
|
||||
2008-04-04 17:21:04,000 [4] INFO NHibernate.Impl.SessionFactoryObjectFactory [(null)] - no name configured
|
||||
2008-04-04 17:21:04,203 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'NHibernateSessionFactory'
|
||||
2008-04-04 17:21:04,203 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Object with name 'NHibernateSessionFactory' is a factory object.
|
||||
2008-04-04 17:21:04,203 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'NHibernateSessionFactory'
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Setting the ObjectFactory property on the IObjectFactoryAware object 'HibernateTransactionManager'.
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'HibernateTransactionManager'
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Calling AfterPropertiesSet() on object with name 'HibernateTransactionManager'.
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'HibernateTransactionManager'
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'TransactionAttributeSource' in object 'transactionInterceptor' to object 'attributeTransactionAttributeSource'.
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'attributeTransactionAttributeSource'
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'attributeTransactionAttributeSource' with merged definition [Root web object with class [Spring.Transaction.Interceptor.AttributesTransactionAttributeSource] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\DeclarativeServicesAttributeDriven.xml]].
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'attributeTransactionAttributeSource'.
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'attributeTransactionAttributeSource' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Transaction.Interceptor.AttributesTransactionAttributeSource' using definition 'attributeTransactionAttributeSource'
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'attributeTransactionAttributeSource'
|
||||
2008-04-04 17:21:04,218 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'attributeTransactionAttributeSource'
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'transactionInterceptor'
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Calling AfterPropertiesSet() on object with name 'transactionInterceptor'.
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'transactionInterceptor'
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'transactionAdvisor'
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'transactionAdvisor'
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'autoProxyCreator'
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Context.Support.AbstractApplicationContext [(null)] - processed 1 IObjectPostProcessors defined in application context [/spring.northwind.web].
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Context.Support.AbstractApplicationContext [(null)] - No IEventRegistry found with name 'eventRegistry' : using default 'Spring.Objects.Events.Support.EventRegistry'.
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Context.Support.AbstractApplicationContext [(null)] - No IMessageSource found with name 'messageSource' : using default 'StaticMessageSource : '.
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Objects.Factory.Support.DefaultListableObjectFactory [(null)] - Pre-instantiating singletons in factory [Spring.Objects.Factory.Support.WebObjectFactory]
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'CommonLoggingAroundAdvice'
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'CommonLoggingAroundAdvice' with merged definition [Root web object with class [Spring.Aspects.Logging.CommonLoggingAroundAdvice] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Aspects.xml]].
|
||||
2008-04-04 17:21:04,234 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'CommonLoggingAroundAdvice'.
|
||||
2008-04-04 17:21:04,250 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'CommonLoggingAroundAdvice' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:04,250 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Aspects.Logging.CommonLoggingAroundAdvice' using definition 'CommonLoggingAroundAdvice'
|
||||
2008-04-04 17:21:04,250 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'CommonLoggingAroundAdvice'
|
||||
2008-04-04 17:21:04,250 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'CommonLoggingAroundAdvice'
|
||||
2008-04-04 17:21:04,250 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'HibernateTemplate'
|
||||
2008-04-04 17:21:04,250 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'HibernateTemplate' with merged definition [Root web object with class [Spring.Data.NHibernate.HibernateTemplate] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Dao.xml]].
|
||||
2008-04-04 17:21:04,250 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'HibernateTemplate'.
|
||||
2008-04-04 17:21:04,250 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'HibernateTemplate' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:04,250 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Data.NHibernate.HibernateTemplate' using definition 'HibernateTemplate'
|
||||
2008-04-04 17:21:04,265 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'SessionFactory' in object 'HibernateTemplate' to object 'NHibernateSessionFactory'.
|
||||
2008-04-04 17:21:04,265 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'NHibernateSessionFactory'.
|
||||
2008-04-04 17:21:04,265 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Object with name 'NHibernateSessionFactory' is a factory object.
|
||||
2008-04-04 17:21:04,265 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'NHibernateSessionFactory'
|
||||
2008-04-04 17:21:04,265 [4] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - returning available advisors
|
||||
2008-04-04 17:21:04,359 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Candidate advisor [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] rejected for type [NHibernate.Impl.SessionFactoryImpl]
|
||||
2008-04-04 17:21:04,375 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Setting the ObjectFactory property on the IObjectFactoryAware object 'HibernateTemplate'.
|
||||
2008-04-04 17:21:04,390 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'HibernateTemplate'
|
||||
2008-04-04 17:21:04,390 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Calling AfterPropertiesSet() on object with name 'HibernateTemplate'.
|
||||
2008-04-04 17:21:04,390 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'HibernateTemplate'
|
||||
2008-04-04 17:21:04,390 [4] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - returning available advisors
|
||||
2008-04-04 17:21:04,421 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Candidate advisor [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] rejected for type [Spring.Data.NHibernate.HibernateTemplate]
|
||||
2008-04-04 17:21:04,421 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'CustomerDao'
|
||||
2008-04-04 17:21:04,421 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'CustomerDao' with merged definition [Root web object with class [Spring.Northwind.Dao.NHibernate.HibernateCustomerDao] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Dao.xml]].
|
||||
2008-04-04 17:21:04,421 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'CustomerDao'.
|
||||
2008-04-04 17:21:04,421 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'CustomerDao' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:04,421 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Northwind.Dao.NHibernate.HibernateCustomerDao' using definition 'CustomerDao'
|
||||
2008-04-04 17:21:04,421 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'HibernateTemplate' in object 'CustomerDao' to object 'HibernateTemplate'.
|
||||
2008-04-04 17:21:04,421 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'HibernateTemplate'.
|
||||
2008-04-04 17:21:04,437 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'CustomerDao'
|
||||
2008-04-04 17:21:04,437 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Calling AfterPropertiesSet() on object with name 'CustomerDao'.
|
||||
2008-04-04 17:21:04,437 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'CustomerDao'
|
||||
2008-04-04 17:21:04,437 [4] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - returning available advisors
|
||||
2008-04-04 17:21:04,437 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Candidate advisor [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] accepted for type [Spring.Northwind.Dao.NHibernate.HibernateCustomerDao]
|
||||
2008-04-04 17:21:04,453 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Creating implicit proxy for object 'CustomerDao' with 0 common interceptors and 1 specific interceptors
|
||||
2008-04-04 17:21:04,578 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'OrderDao'
|
||||
2008-04-04 17:21:04,578 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'OrderDao' with merged definition [Root web object with class [Spring.Northwind.Dao.NHibernate.HibernateOrderDao] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Dao.xml]].
|
||||
2008-04-04 17:21:04,578 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'OrderDao'.
|
||||
2008-04-04 17:21:04,578 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'OrderDao' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:04,578 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Northwind.Dao.NHibernate.HibernateOrderDao' using definition 'OrderDao'
|
||||
2008-04-04 17:21:04,578 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'HibernateTemplate' in object 'OrderDao' to object 'HibernateTemplate'.
|
||||
2008-04-04 17:21:04,578 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'HibernateTemplate'.
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'OrderDao'
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Calling AfterPropertiesSet() on object with name 'OrderDao'.
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'OrderDao'
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - returning available advisors
|
||||
2008-04-04 17:21:04,593 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Candidate advisor [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] rejected for type [Spring.Northwind.Dao.NHibernate.HibernateOrderDao]
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'FulfillmentService'
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'FulfillmentService' with merged definition [Root web object with class [Spring.Northwind.Service.FulfillmentService] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Services.xml]].
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'FulfillmentService'.
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'FulfillmentService' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Northwind.Service.FulfillmentService' using definition 'FulfillmentService'
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerDao' in object 'FulfillmentService' to object 'CustomerDao'.
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerDao'.
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'OrderDao' in object 'FulfillmentService' to object 'OrderDao'.
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'OrderDao'.
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'ShippingService' in object 'FulfillmentService' to object 'ShippingService'.
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Creating shared instance of singleton object 'ShippingService'
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'ShippingService' with merged definition [Root web object with class [Spring.Northwind.Service.FedExShippingService] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Services.xml]].
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'ShippingService'.
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Eagerly caching object 'ShippingService' to allow for resolving potential circular references
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Northwind.Service.FedExShippingService' using definition 'ShippingService'
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'ShippingService'
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'ShippingService'
|
||||
2008-04-04 17:21:04,593 [4] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - returning available advisors
|
||||
2008-04-04 17:21:04,593 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Candidate advisor [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] rejected for type [Spring.Northwind.Service.FedExShippingService]
|
||||
2008-04-04 17:21:04,609 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'FulfillmentService'
|
||||
2008-04-04 17:21:04,609 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'FulfillmentService'
|
||||
2008-04-04 17:21:04,609 [4] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - returning available advisors
|
||||
2008-04-04 17:21:04,609 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Candidate advisor [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] accepted for type [Spring.Northwind.Service.FulfillmentService]
|
||||
2008-04-04 17:21:04,609 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Creating implicit proxy for object 'FulfillmentService' with 0 common interceptors and 1 specific interceptors
|
||||
2008-04-04 17:21:04,625 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - created instance [/spring.northwind.web]:WebApplicationContext(35298535)
|
||||
2008-04-04 17:21:04,625 [4] DEBUG Spring.Context.Support.ContextRegistry [(null)] - Registering context '[/spring.northwind.web]:WebApplicationContext(35298535)' under name '/spring.northwind.web'.
|
||||
2008-04-04 17:21:04,625 [4] DEBUG Spring.Context.Support.ContextHandler [(null)] - context '[/spring.northwind.web]:WebApplicationContext(35298535)' created for name '/spring.northwind.web'
|
||||
2008-04-04 17:21:04,625 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - got context '[/spring.northwind.web]:WebApplicationContext(35298535)' for vpath 'spring.root'
|
||||
2008-04-04 17:21:04,625 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - added context '[/spring.northwind.web]:WebApplicationContext(35298535)' to WebContextCache for vpath 'spring.root'
|
||||
2008-04-04 17:21:04,625 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - added parent context '[/spring.northwind.web]:WebApplicationContext(35298535)' to WebContextCache for vpath '/spring.northwind.web'
|
||||
2008-04-04 17:21:04,640 [4] DEBUG Spring.Context.Support.ContextRegistry [(null)] - Returning context '[/spring.northwind.web]:WebApplicationContext(35298535)' registered under name '/spring.northwind.web'.
|
||||
2008-04-04 17:21:04,640 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'NHibernateSessionFactory'.
|
||||
2008-04-04 17:21:04,640 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Object with name 'NHibernateSessionFactory' is a factory object.
|
||||
2008-04-04 17:21:04,640 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'NHibernateSessionFactory'
|
||||
2008-04-04 17:21:04,640 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:04,640 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:04,640 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@3864659] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [4]
|
||||
2008-04-04 17:21:04,718 [4] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:04,718 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - looking up web context 'spring.root' in WebContextCache
|
||||
2008-04-04 17:21:04,718 [4] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - returning WebContextCache hit '[/spring.northwind.web]:WebApplicationContext(35298535)' for vpath 'spring.root'
|
||||
2008-04-04 17:21:04,718 [4] DEBUG Spring.Web.Support.AbstractHandlerFactory [(null)] - GetHandler():looking up definition for app-relative url '/CustomerList.aspx'
|
||||
2008-04-04 17:21:04,718 [4] DEBUG Spring.Web.Support.AbstractHandlerFactory [(null)] - GetHandler():found definition for page-url '/CustomerList.aspx'
|
||||
2008-04-04 17:21:04,718 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerList.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerList.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:04,718 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerList.aspx'.
|
||||
2008-04-04 17:21:04,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:04,718 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerList.aspx
|
||||
2008-04-04 17:21:04,718 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customerlist_aspx' using definition '/CustomerList.aspx'
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerList.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'CustomerEditController' with merged definition [Root web object with class [NHibernateCustomerEditController] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'CustomerEditController'.
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'constructor argument with name sessionfactory' in object 'CustomerEditController' to object 'NHibernateSessionFactory'.
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'NHibernateSessionFactory'.
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Object with name 'NHibernateSessionFactory' is a factory object.
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'NHibernateSessionFactory'
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Object 'CustomerEditController' instantiated via constructor [Void .ctor(NHibernate.ISessionFactory)].
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'NHibernateCustomerEditController' using definition 'CustomerEditController'
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'CustomerEditController'
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'CustomerEditController'
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - returning available advisors
|
||||
2008-04-04 17:21:04,734 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Candidate advisor [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] rejected for type [NHibernateCustomerEditController]
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerDao' in object '/CustomerList.aspx' to object 'CustomerDao'.
|
||||
2008-04-04 17:21:04,734 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerDao'.
|
||||
2008-04-04 17:21:04,765 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:04,765 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:04,765 [4] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - returning available advisors
|
||||
2008-04-04 17:21:05,156 [4] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Candidate advisor [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] rejected for type [ASP.customerlist_aspx]
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object 'SqlServer-2.0' with merged definition [Root web object with class [Spring.Data.Common.DbProvider] defined in assembly [Spring.Data, Version=1.1.1.20093, Culture=neutral, PublicKeyToken=null], resource [Spring.Data.Common.dbproviders.xml]].
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of 'SqlServer-2.0'.
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '(inner object)' with merged definition [Root web object with class [Spring.Data.Common.DbMetadata] defined in assembly [Spring.Data, Version=1.1.1.20093, Culture=neutral, PublicKeyToken=null], resource [Spring.Data.Common.dbproviders.xml]].
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '(inner object)'.
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Object '(inner object)' instantiated via constructor [Void .ctor(System.String, System.String, System.Type, System.Type, System.Type, System.Type, System.Type, System.String, System.Type, System.String, System.String, System.String, System.Type, Boolean, Boolean, Boolean, System.String)].
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Data.Common.DbMetadata' using definition '(inner object)'
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '(inner object)'
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '(inner object)'
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Object 'SqlServer-2.0' instantiated via constructor [Void .ctor(Spring.Data.Common.IDbMetadata)].
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'Spring.Data.Common.DbProvider' using definition 'SqlServer-2.0'
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object 'SqlServer-2.0'
|
||||
2008-04-04 17:21:05,296 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object 'SqlServer-2.0'
|
||||
2008-04-04 17:21:05,312 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@3864659] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:05,312 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:05,312 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:05,328 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@3864659] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:05,328 [4] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Found thread-bound Session for HibernateTemplate
|
||||
2008-04-04 17:21:05,343 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@3864659] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:05,406 [4] INFO NHibernate.Loader.Loader [(null)] - SELECT this_.CustomerID as CustomerID1_0_, this_.CompanyName as CompanyN2_1_0_, this_.ContactName as ContactN3_1_0_, this_.ContactTitle as ContactT4_1_0_, this_.Address as Address1_0_, this_.City as City1_0_, this_.Region as Region1_0_, this_.PostalCode as PostalCode1_0_, this_.Country as Country1_0_, this_.Phone as Phone1_0_, this_.Fax as Fax1_0_ FROM Customers this_
|
||||
2008-04-04 17:21:06,000 [4] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Not closing pre-bound Hibernate Session after HibernateTemplate
|
||||
2008-04-04 17:21:06,046 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:06,046 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:06,046 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:06,046 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@3864659] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [4]
|
||||
2008-04-04 17:21:06,046 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:06,046 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@23404EE] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [8]
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolved url '/Spring.Northwind.Web/CustomerList.aspx' from reusable handler cache
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerList.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerList.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerList.aspx'.
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerList.aspx
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customerlist_aspx' using definition '/CustomerList.aspx'
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerList.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerEditController'.
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerDao' in object '/CustomerList.aspx' to object 'CustomerDao'.
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerDao'.
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@23404EE] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@23404EE] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Found thread-bound Session for HibernateTemplate
|
||||
2008-04-04 17:21:08,921 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@23404EE] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:08,921 [8] INFO NHibernate.Loader.Loader [(null)] - SELECT this_.CustomerID as CustomerID1_0_, this_.CompanyName as CompanyN2_1_0_, this_.ContactName as ContactN3_1_0_, this_.ContactTitle as ContactT4_1_0_, this_.Address as Address1_0_, this_.City as City1_0_, this_.Region as Region1_0_, this_.PostalCode as PostalCode1_0_, this_.Country as Country1_0_, this_.Phone as Phone1_0_, this_.Fax as Fax1_0_ FROM Customers this_
|
||||
2008-04-04 17:21:08,937 [8] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Not closing pre-bound Hibernate Session after HibernateTemplate
|
||||
2008-04-04 17:21:09,062 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:09,062 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:09,062 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:09,062 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@23404EE] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [8]
|
||||
2008-04-04 17:21:09,062 [8] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:09,062 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@15CF103] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [8]
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - looking up web context 'spring.root' in WebContextCache
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Context.Support.WebApplicationContext [(null)] - returning WebContextCache hit '[/spring.northwind.web]:WebApplicationContext(35298535)' for vpath 'spring.root'
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Web.Support.AbstractHandlerFactory [(null)] - GetHandler():looking up definition for app-relative url '/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Web.Support.AbstractHandlerFactory [(null)] - GetHandler():found definition for page-url '/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerOrders.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerOrders.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerOrders.aspx'.
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerOrders.aspx
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customerorders_aspx' using definition '/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerOrders.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:09,078 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerEditController'.
|
||||
2008-04-04 17:21:09,093 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:09,093 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerOrders.aspx'
|
||||
2008-04-04 17:21:09,093 [8] DEBUG Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - returning available advisors
|
||||
2008-04-04 17:21:09,437 [8] INFO Spring.Aop.Framework.AutoProxy.AbstractAutoProxyCreator [(null)] - Candidate advisor [Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor] rejected for type [ASP.customerorders_aspx]
|
||||
2008-04-04 17:21:09,500 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@15CF103] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:09,500 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:09,500 [8] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:09,546 [8] INFO NHibernate.Loader.Loader [(null)] - SELECT orders0_.CustomerID as CustomerID__1_, orders0_.OrderID as OrderID1_, orders0_.OrderID as OrderID0_0_, orders0_.OrderDate as OrderDate0_0_, orders0_.RequiredDate as Required3_0_0_, orders0_.ShippedDate as ShippedD4_0_0_, orders0_.ShipName as ShipName0_0_, orders0_.ShipAddress as ShipAddr6_0_0_, orders0_.ShipCity as ShipCity0_0_, orders0_.ShipRegion as ShipRegion0_0_, orders0_.ShipPostalCode as ShipPost9_0_0_, orders0_.ShipCountry as ShipCou10_0_0_ FROM Orders orders0_ WHERE orders0_.CustomerID=@p0
|
||||
2008-04-04 17:21:09,703 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:09,703 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:09,703 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:09,703 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@15CF103] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [8]
|
||||
2008-04-04 17:21:09,703 [8] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:09,703 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:21:11,359 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:11,359 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:11,359 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@4BC5D9] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [4]
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolved url '/Spring.Northwind.Web/CustomerList.aspx' from reusable handler cache
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerList.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerList.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerList.aspx'.
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerList.aspx
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customerlist_aspx' using definition '/CustomerList.aspx'
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerList.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerEditController'.
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerDao' in object '/CustomerList.aspx' to object 'CustomerDao'.
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerDao'.
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@4BC5D9] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@4BC5D9] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Found thread-bound Session for HibernateTemplate
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@4BC5D9] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [4]
|
||||
2008-04-04 17:21:11,375 [4] INFO NHibernate.Loader.Loader [(null)] - SELECT this_.CustomerID as CustomerID1_0_, this_.CompanyName as CompanyN2_1_0_, this_.ContactName as ContactN3_1_0_, this_.ContactTitle as ContactT4_1_0_, this_.Address as Address1_0_, this_.City as City1_0_, this_.Region as Region1_0_, this_.PostalCode as PostalCode1_0_, this_.Country as Country1_0_, this_.Phone as Phone1_0_, this_.Fax as Fax1_0_ FROM Customers this_
|
||||
2008-04-04 17:21:11,375 [4] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Not closing pre-bound Hibernate Session after HibernateTemplate
|
||||
2008-04-04 17:21:11,406 [4] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - disposing 'request'-scoped item cache
|
||||
2008-04-04 17:21:11,406 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Trying to close SessionScope
|
||||
2008-04-04 17:21:11,406 [4] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Closing single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:11,406 [4] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Removed value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@4BC5D9] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] from thread [4]
|
||||
2008-04-04 17:21:11,406 [4] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Closing Hibernate Session
|
||||
2008-04-04 17:21:11,406 [4] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Closed LazySessionHolder
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Data.NHibernate.Support.OpenSessionInViewModule [(null)] - Opening single Hibernate Session in SessionScope
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - Created LazySessionHolder
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Bound value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@F15783] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] to thread [8]
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolving url '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Web.Support.PageHandlerFactory [(null)] - GetHandler():resolved url '/Spring.Northwind.Web/CustomerList.aspx' from reusable handler cache
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Creating instance of Object '/CustomerList.aspx' with merged definition [Root web object with class [/Spring.Northwind.Web/CustomerList.aspx] defined in file [L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\Web.xml]].
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IInstantiationAwareObjectPostProcessors before the instantiation of '/CustomerList.aspx'.
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - creating page instance '/Spring.Northwind.Web/CustomerList.aspx'
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.WebObjectUtils [(null)] - page vpath is /Spring.Northwind.Web/CustomerList.aspx
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - configuring object 'ASP.customerlist_aspx' using definition '/CustomerList.aspx'
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerEditController' in object '/CustomerList.aspx' to object 'CustomerEditController'.
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerEditController'.
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Resolving reference from property 'CustomerDao' in object '/CustomerList.aspx' to object 'CustomerDao'.
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.WebObjectFactory [(null)] - Returning cached instance of singleton object 'CustomerDao'.
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors before initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory [(null)] - Invoking IObjectPostProcessors after initialization of object '/CustomerList.aspx'
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@F15783] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder [(null)] - session instance requested - opening new session
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Data.NHibernate.SessionFactoryUtils [(null)] - Opening Hibernate Session
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@F15783] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Data.NHibernate.HibernateTemplate [(null)] - Found thread-bound Session for HibernateTemplate
|
||||
2008-04-04 17:21:13,328 [8] DEBUG Spring.Transaction.Support.TransactionSynchronizationManager [(null)] - Retrieved value [Spring.Data.NHibernate.Support.SessionScope+LazySessionHolder@F15783] for key [NHibernate.Impl.SessionFactoryImpl@294C2AB] bound to thread [8]
|
||||
2008-04-04 17:21:13,328 [8] INFO NHibernate.Loader.Loader [(null)] - SELECT this_.CustomerID as CustomerID1_0_, this_.CompanyName as CompanyN2_1_0_, this_.ContactName as ContactN3_1_0_, this_.ContactTitle as ContactT4_1_0_, this_.Address as Address1_0_, this_.City as City1_0_, this_.Region as Region1_0_, this_.PostalCode as PostalCode1_0_, this_.Country as Country1_0_, this_.Phone as Phone1_0_, this_.Fax as Fax1_0_ FROM Customers this_
|
||||
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
|
||||
<!-- Referenced by main application context configuration file -->
|
||||
|
||||
<description>
|
||||
The Northwind service layer definitions
|
||||
</description>
|
||||
|
||||
<!-- Property placeholder configurer for database settings -->
|
||||
<object id="FulfillmentService" type="Spring.Northwind.Service.FulfillmentService, Spring.Northwind.Service">
|
||||
<property name="CustomerDao" ref="CustomerDao"/>
|
||||
<property name="OrderDao" ref="OrderDao"/>
|
||||
<property name="ShippingService" ref="ShippingService"/>
|
||||
</object>
|
||||
|
||||
<object id="ShippingService" type="Spring.Northwind.Service.FedExShippingService, Spring.Northwind.Service">
|
||||
|
||||
</object>
|
||||
|
||||
<import resource="DeclarativeServicesAttributeDriven.xml"/>
|
||||
|
||||
<!-- didn't configure correctly yet - don't use
|
||||
<import resource="DeclarativeServicesObjectNameDriven.xml"/>
|
||||
-->
|
||||
|
||||
<!--
|
||||
<import resource="DeclarativeServicesTxProxyFactoryDriven.xml"/>
|
||||
-->
|
||||
</objects>
|
||||
@@ -0,0 +1,82 @@
|
||||
<?xml version="1.0"?>
|
||||
<!--
|
||||
Note: As an alternative to hand editing this file you can use the
|
||||
web admin tool to configure settings for your application. Use
|
||||
the Website->Asp.Net Configuration option in Visual Studio.
|
||||
A full list of settings and comments can be found in
|
||||
machine.config.comments usually located in
|
||||
\Windows\Microsoft.Net\Framework\v2.x\Config
|
||||
-->
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="common">
|
||||
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging"/>
|
||||
</sectionGroup>
|
||||
<sectionGroup name="spring">
|
||||
<section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/>
|
||||
<section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core"/>
|
||||
</sectionGroup>
|
||||
<section name="databaseSettings" type="System.Configuration.NameValueSectionHandler"/>
|
||||
</configSections>
|
||||
<common>
|
||||
<logging>
|
||||
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net">
|
||||
<!-- choices are INLINE, FILE, FILE-WATCH, EXTERNAL-->
|
||||
<!-- otherwise BasicConfigurer.Configure is used -->
|
||||
<!-- log4net configuration file is specified with key configFile-->
|
||||
<arg key="configType" value="FILE-WATCH"/>
|
||||
<arg key="configFile" value="~/Log4Net.xml"/>
|
||||
</factoryAdapter>
|
||||
</logging>
|
||||
</common>
|
||||
<spring>
|
||||
<parsers>
|
||||
<parser type="Spring.Data.Config.DatabaseNamespaceParser, Spring.Data"/>
|
||||
</parsers>
|
||||
<context>
|
||||
<resource uri="~/Aspects.xml"/>
|
||||
<resource uri="~/Dao.xml"/>
|
||||
<resource uri="~/Services.xml"/>
|
||||
<resource uri="~/Web.xml"/>
|
||||
</context>
|
||||
</spring>
|
||||
<!-- These properties are referenced in Dao.xml -->
|
||||
<databaseSettings>
|
||||
<add key="db.datasource" value=".\SQLEXPRESS; Integrated Security=true; AttachDbFilename=|DataDirectory|northwnd.mdf; User Instance=true;"/>
|
||||
<add key="db.user" value="springqa"/>
|
||||
<add key="db.password" value="springqa"/>
|
||||
<add key="db.database" value="Northwind"/>
|
||||
</databaseSettings>
|
||||
<appSettings>
|
||||
<add key="Spring.Data.NHibernate.Support.OpenSessionInViewModule.SessionFactoryObjectName" value="NHibernateSessionFactory"/>
|
||||
</appSettings>
|
||||
<connectionStrings/>
|
||||
<system.web>
|
||||
<httpModules>
|
||||
<add name="Spring" type="Spring.Context.Support.WebSupportModule, Spring.Web"/>
|
||||
<add name="OpenSessionInView" type="Spring.Data.NHibernate.Support.OpenSessionInViewModule, Spring.Data.NHibernate12"/>
|
||||
</httpModules>
|
||||
<httpHandlers>
|
||||
<add verb="*" path="*.aspx" type="Spring.Web.Support.PageHandlerFactory, Spring.Web"/>
|
||||
<add verb="*" path="*.asmx" type="Spring.Web.Services.WebServiceHandlerFactory, Spring.Web"/>
|
||||
<add verb="*" path="ContextMonitor.ashx" type="Spring.Web.Support.ContextMonitor, Spring.Web"/>
|
||||
</httpHandlers>
|
||||
<compilation debug="true">
|
||||
<assemblies>
|
||||
<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
||||
<add assembly="System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
||||
<add assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
||||
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
|
||||
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
|
||||
<add assembly="System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
|
||||
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
|
||||
<add assembly="System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
|
||||
<add assembly="System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies>
|
||||
</compilation>
|
||||
<pages>
|
||||
<controls>
|
||||
<add tagPrefix="spring" namespace="Spring.Web.UI.Controls" assembly="Spring.Web"/>
|
||||
</controls>
|
||||
</pages>
|
||||
</system.web>
|
||||
</configuration>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
|
||||
<!-- Referenced by main application context configuration file -->
|
||||
|
||||
<description>
|
||||
The Northwind web layer definitions
|
||||
</description>
|
||||
|
||||
<object name="CustomerEditController" type="NHibernateCustomerEditController" scope="session">
|
||||
<constructor-arg name="sessionFactory" ref="NHibernateSessionFactory"/>
|
||||
</object>
|
||||
|
||||
<object type="Default.aspx">
|
||||
<property name="FulfillmentService" ref="FulfillmentService" />
|
||||
<property name="CustomerDao" ref="CustomerDao" />
|
||||
</object>
|
||||
|
||||
<object name="CustomerEditPage" abstract="true">
|
||||
<property name="CustomerEditController" ref="CustomerEditController" />
|
||||
</object>
|
||||
|
||||
<object type="CustomerList.aspx" parent="CustomerEditPage">
|
||||
<property name="CustomerDao" ref="CustomerDao" />
|
||||
<property name="Results">
|
||||
<dictionary>
|
||||
<entry key="EditCustomer" value="redirect:CustomerEditor.aspx" />
|
||||
<entry key="ViewOrders" value="redirect:CustomerOrders.aspx" />
|
||||
</dictionary>
|
||||
</property>
|
||||
</object>
|
||||
|
||||
<object type="CustomerEditor.aspx" parent="CustomerEditPage">
|
||||
<property name="CustomerDao" ref="CustomerDao" />
|
||||
</object>
|
||||
|
||||
<object type="CustomerOrders.aspx" parent="CustomerEditPage" />
|
||||
|
||||
</objects>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="spring">
|
||||
<section name='context' type='Spring.Context.Support.ContextHandler, Spring.Core'/>
|
||||
<section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core" />
|
||||
</sectionGroup>
|
||||
<sectionGroup name="common">
|
||||
<section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
|
||||
</sectionGroup>
|
||||
<section name="databaseSettings" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net" />
|
||||
</configSections>
|
||||
|
||||
<spring>
|
||||
<parsers>
|
||||
<parser type="Spring.Data.Config.DatabaseNamespaceParser, Spring.Data" />
|
||||
</parsers>
|
||||
|
||||
<context>
|
||||
<resource uri="Aspects.xml" />
|
||||
<resource uri="Services.xml" />
|
||||
<resource uri="Dao.xml" />
|
||||
</context>
|
||||
</spring>
|
||||
|
||||
<!-- These properties are referenced in Dao.xml -->
|
||||
<databaseSettings>
|
||||
<add key="db.datasource" value="(local);Integrated Security=true" />
|
||||
<add key="db.user" value="springqa" />
|
||||
<add key="db.password" value="springqa" />
|
||||
<add key="db.database" value="Northwind" />
|
||||
</databaseSettings>
|
||||
|
||||
<common>
|
||||
<logging>
|
||||
<factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net">
|
||||
<!-- choices are INLINE, FILE, FILE-WATCH, EXTERNAL-->
|
||||
<!-- otherwise BasicConfigurer.Configure is used -->
|
||||
<!-- log4net configuration file is specified with key configFile-->
|
||||
<arg key="configType" value="INLINE"/>
|
||||
<arg key="configFile" value="filename"/>
|
||||
</factoryAdapter>
|
||||
</logging>
|
||||
</common>
|
||||
|
||||
<log4net>
|
||||
<appender name="ConsoleAppender" type="log4net.Appender.ConsoleAppender">
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<conversionPattern value="%-5level %logger - %message%newline" />
|
||||
</layout>
|
||||
</appender>
|
||||
|
||||
<!-- Set default logging level to DEBUG -->
|
||||
<root>
|
||||
<level value="DEBUG" />
|
||||
<appender-ref ref="ConsoleAppender" />
|
||||
</root>
|
||||
|
||||
<!-- Set logging for Spring. Logger names in Spring correspond to the namespace -->
|
||||
<logger name="Spring">
|
||||
<level value="INFO" />
|
||||
</logger>
|
||||
|
||||
<logger name="Spring.Data">
|
||||
<level value="DEBUG" />
|
||||
</logger>
|
||||
|
||||
<logger name="NHibernate">
|
||||
<level value="INFO" />
|
||||
</logger>
|
||||
|
||||
|
||||
</log4net>
|
||||
</configuration>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
|
||||
<object id="CommonLoggingAroundAdvice" type="Spring.Aspects.Logging.CommonLoggingAroundAdvice, Spring.Aspects">
|
||||
<property name="Level" value="Info" />
|
||||
</object>
|
||||
|
||||
</objects>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net"
|
||||
xmlns:db="http://www.springframework.net/database">
|
||||
|
||||
<!-- Referenced by main application context configuration file -->
|
||||
<description>
|
||||
The Northwind object definitions for the Data Access Objects.
|
||||
</description>
|
||||
|
||||
<!-- Property placeholder configurer for database settings -->
|
||||
<object type="Spring.Objects.Factory.Config.PropertyPlaceholderConfigurer, Spring.Core">
|
||||
<property name="ConfigSections" value="databaseSettings"/>
|
||||
</object>
|
||||
|
||||
<!-- Database and NHibernate Configuration -->
|
||||
<db:provider id="DbProvider"
|
||||
provider="SqlServer-2.0"
|
||||
connectionString="Data Source=.\SQLExpress;Integrated Security=true;User Instance=true;AttachDBFilename=L:\projects\Spring.Net\examples\Spring\Spring.Data.NHibernate.Northwind\src\Spring.Northwind.Web\App_Data\Northwnd.mdf"/>
|
||||
<!--
|
||||
<object id="DbProvider" type="Spring.Data.Support.SqlProvider, Spring.Data">
|
||||
<property name="ConnectionString"
|
||||
value="Data Source=${db.datasource};Database=${db.database};User ID=${db.user};Password=${db.password};Trusted_Connection=False"/>
|
||||
</object>
|
||||
-->
|
||||
|
||||
<object id="SessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate12">
|
||||
<property name="DbProvider" ref="DbProvider"/>
|
||||
<property name="MappingAssemblies">
|
||||
<list>
|
||||
<value>Spring.Northwind.Dao.NHibernate</value>
|
||||
</list>
|
||||
</property>
|
||||
<property name="HibernateProperties">
|
||||
<dictionary>
|
||||
|
||||
<entry key="hibernate.connection.provider"
|
||||
value="NHibernate.Connection.DriverConnectionProvider"/>
|
||||
|
||||
<entry key="hibernate.dialect"
|
||||
value="NHibernate.Dialect.MsSql2000Dialect"/>
|
||||
|
||||
<entry key="hibernate.connection.driver_class"
|
||||
value="NHibernate.Driver.SqlClientDriver"/>
|
||||
|
||||
</dictionary>
|
||||
</property>
|
||||
|
||||
</object>
|
||||
|
||||
|
||||
<object id="HibernateTransactionManager"
|
||||
type="Spring.Data.NHibernate.HibernateTransactionManager, Spring.Data.NHibernate12">
|
||||
|
||||
<property name="DbProvider" ref="DbProvider"/>
|
||||
<property name="SessionFactory" ref="SessionFactory"/>
|
||||
|
||||
</object>
|
||||
|
||||
<object id="HibernateTemplate" type="Spring.Data.NHibernate.HibernateTemplate">
|
||||
<property name="SessionFactory" ref="SessionFactory" />
|
||||
<property name="TemplateFlushMode" value="Auto" />
|
||||
<property name="CacheQueries" value="true" />
|
||||
</object>
|
||||
|
||||
<!-- Data Access Objects -->
|
||||
<object id="CustomerDao" type="Spring.Northwind.Dao.NHibernate.HibernateCustomerDao, Spring.Northwind.Dao.NHibernate">
|
||||
<property name="HibernateTemplate" ref="HibernateTemplate"/>
|
||||
</object>
|
||||
|
||||
<object id="OrderDao" type="Spring.Northwind.Dao.NHibernate.HibernateOrderDao, Spring.Northwind.Dao.NHibernate">
|
||||
<property name="HibernateTemplate" ref="HibernateTemplate"/>
|
||||
</object>
|
||||
|
||||
|
||||
</objects>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
<!-- The rest of the config file is common no matter how many objects you add -->
|
||||
<!-- that you would like to have declarative tx management applied to -->
|
||||
<object id="autoProxyCreator"
|
||||
type="Spring.Aop.Framework.AutoProxy.DefaultAdvisorAutoProxyCreator, Spring.Aop">
|
||||
</object>
|
||||
|
||||
<object id="transactionAdvisor"
|
||||
type="Spring.Transaction.Interceptor.TransactionAttributeSourceAdvisor, Spring.Data">
|
||||
<property name="TransactionInterceptor" ref="transactionInterceptor"/>
|
||||
</object>
|
||||
|
||||
<!-- Transaction Interceptor -->
|
||||
<object id="transactionInterceptor"
|
||||
type="Spring.Transaction.Interceptor.TransactionInterceptor, Spring.Data">
|
||||
<property name="TransactionManager" ref="HibernateTransactionManager"/>
|
||||
<!-- note do not have converter from string to this property type registered -->
|
||||
<property name="TransactionAttributeSource" ref="attributeTransactionAttributeSource"/>
|
||||
</object>
|
||||
|
||||
<object id="attributeTransactionAttributeSource"
|
||||
type="Spring.Transaction.Interceptor.AttributesTransactionAttributeSource, Spring.Data">
|
||||
</object>
|
||||
</objects>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
|
||||
<object name="autoProxyCreator"
|
||||
type="Spring.Aop.Framework.AutoProxy.ObjectNameAutoProxyCreator, Spring.Aop">
|
||||
|
||||
<property name="InterceptorNames" value="transactionInterceptor"/>
|
||||
<property name="ObjectNames">
|
||||
<list>
|
||||
<ref object="FulfillmentService"/>
|
||||
</list>
|
||||
</property>
|
||||
</object>
|
||||
|
||||
<object id="transactionInterceptor"
|
||||
type="Spring.Transaction.Interceptor.TransactionInterceptor, Spring.Data">
|
||||
<property name="TransactionManager" ref="HibernateTransactionManager"/>
|
||||
<!-- note do not have converter from string to this property type registered -->
|
||||
<!-- so useing a ref to the source of transaction options -->
|
||||
<property name="TransactionAttributeSource" ref="attributeTransactionAttributeSource"/>
|
||||
</object>
|
||||
|
||||
<object id="attributeTransactionAttributeSource"
|
||||
type="Spring.Transaction.Interceptor.AttributesTransactionAttributeSource, Spring.Data">
|
||||
</object>
|
||||
|
||||
<!--
|
||||
<object name="methodMapTransactionAttributeSource"
|
||||
type="Spring.Transaction.Interceptor.MethodMapTransactionAttributeSource, Spring.Data">
|
||||
<property name="MethodMap">
|
||||
<dictionary>
|
||||
<entry key="Spring.Northwind.Service.FulfillmentService.ProcessCustomer, Spring.Northwind.Service"
|
||||
value="PROPAGATION_REQUIRED"/>
|
||||
</dictionary>
|
||||
</property>
|
||||
</object>
|
||||
-->
|
||||
</objects>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
|
||||
<description>
|
||||
Transactional Proxy for FulfillmentService using the TransactionProxyFactory
|
||||
</description>
|
||||
|
||||
|
||||
<!-- Note if you have many of these objects with similar configuration use -->
|
||||
<!-- an abstract parent object to encapsulate common settings -->
|
||||
|
||||
<object id="TxProxyConfigurationTemplate" abstract="true"
|
||||
type="Spring.Transaction.Interceptor.TransactionProxyFactoryObject, Spring.Data">
|
||||
|
||||
<property name="PlatformTransactionManager" ref="HibernateTransactionManager"/>
|
||||
|
||||
<property name="TransactionAttributes">
|
||||
<name-values>
|
||||
<!-- Add common methods across your services here -->
|
||||
<add key="Process*" value="PROPAGATION_REQUIRED"/>
|
||||
<!--
|
||||
<add key="Delete*" value="PROPAGATION_REQUIRED"/>
|
||||
-->
|
||||
</name-values>
|
||||
</property>
|
||||
<!-- note you can use alias names so that this configuration file is -->
|
||||
<!-- not dependent on the precise object name of the logging advice -->
|
||||
<!-- defined in Aspects.xml -->
|
||||
<property name="PreInterceptors" ref="CommonLoggingAroundAdvice"/>
|
||||
</object>
|
||||
|
||||
|
||||
<object id="FulfillmentServiceUsingTxPFO" parent="TxProxyConfigurationTemplate">
|
||||
|
||||
<!-- Note: would likely use an anonymous inner object instead of a reference -->
|
||||
<!-- to ensure that no one can access an unadvised object -->
|
||||
<property name="Target" ref="FulfillmentService"/>
|
||||
|
||||
</object>
|
||||
</objects>
|
||||
@@ -0,0 +1,70 @@
|
||||
#region License
|
||||
|
||||
/*
|
||||
* Copyright 2002-2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#endregion
|
||||
|
||||
#region Imports
|
||||
|
||||
using NUnit.Framework;
|
||||
|
||||
using Spring.Context;
|
||||
using Spring.Context.Support;
|
||||
|
||||
using Spring.Northwind.Service;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Spring.Northwind.IntegrationTests
|
||||
{
|
||||
[TestFixture]
|
||||
public class FulfillmentServiceTests
|
||||
{
|
||||
private IApplicationContext ctx;
|
||||
|
||||
[SetUp]
|
||||
public void SetUp()
|
||||
{
|
||||
ctx = ContextRegistry.GetContext();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The transaction proxy is created by direct
|
||||
/// configuration of a TransactionProxyFactoryObject
|
||||
/// </summary>
|
||||
[Test,Explicit( "choose DeclarativeServicesTxProxyFactoryDriven.xml in Services.xml before running this test" )]
|
||||
public void ProcessCustomerViaTxProxyFactoryObject()
|
||||
{
|
||||
IFulfillmentService s = ctx["FulfillmentServiceUsingTxPFO"] as IFulfillmentService;
|
||||
s.ProcessCustomer("BERGS");
|
||||
//assertions....
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The transaction proxy is created through use of TransactionAttributeSourceAdvisor
|
||||
/// that identified classes/methods that have the [Transaction] attribute
|
||||
/// </summary>
|
||||
[Test]
|
||||
//[Explicit( "choose DeclarativeServicesAttributeDriven.xml in Services.xml before running this test" )]
|
||||
public void ProcessCustomer()
|
||||
{
|
||||
IFulfillmentService s = ctx["FulfillmentService"] as IFulfillmentService;
|
||||
s.ProcessCustomer("BERGS");
|
||||
//assertions....
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Spring.Northwind.IntegrationTests")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Spring.Northwind.IntegrationTests")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2006")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("8825faf6-aad5-48c4-9319-2d1a5e7f0264")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<objects xmlns="http://www.springframework.net">
|
||||
|
||||
<!-- Referenced by main application context configuration file -->
|
||||
|
||||
<description>
|
||||
The Northwind service layer definitions
|
||||
</description>
|
||||
|
||||
<!-- Property placeholder configurer for database settings -->
|
||||
<object id="FulfillmentService" type="Spring.Northwind.Service.FulfillmentService, Spring.Northwind.Service">
|
||||
<property name="CustomerDao" ref="CustomerDao"/>
|
||||
<property name="OrderDao" ref="OrderDao"/>
|
||||
<property name="ShippingService" ref="ShippingService"/>
|
||||
</object>
|
||||
|
||||
<object id="ShippingService" type="Spring.Northwind.Service.FedExShippingService, Spring.Northwind.Service">
|
||||
|
||||
</object>
|
||||
|
||||
<import resource="DeclarativeServicesAttributeDriven.xml"/>
|
||||
|
||||
<!-- didn't configure correctly yet - don't use
|
||||
<import resource="DeclarativeServicesObjectNameDriven.xml"/>
|
||||
-->
|
||||
<!--
|
||||
<import resource="DeclarativeServicesTxProxyFactoryDriven.xml"/>
|
||||
-->
|
||||
</objects>
|
||||
@@ -0,0 +1,136 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{2D0C5DF7-3BDB-44FB-BC1B-58E60B170BAD}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Spring.Northwind</RootNamespace>
|
||||
<AssemblyName>Spring.Northwind.IntegrationTests</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="antlr.runtime, Version=2.7.6.2, Culture=neutral, PublicKeyToken=65e474d141e25e07, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\Net\2.0\antlr.runtime.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Castle.DynamicProxy, Version=1.1.5.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\Castle.DynamicProxy.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common.Logging, Version=1.1.0.0, Culture=neutral, PublicKeyToken=af08829b84f0328e">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\Net\2.0\Common.Logging.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Common.Logging.Log4Net, Version=1.2.0.2, Culture=neutral, PublicKeyToken=af08829b84f0328e, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Common.Logging.Log4Net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Iesi.Collections, Version=1.0.0.3, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\Iesi.Collections.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\log4net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NHibernate, Version=1.2.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\NHibernate12\net\2.0\NHibernate.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="nunit.framework, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\lib\net\2.0\nunit.framework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Core, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Data, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Spring.Web, Version=1.1.0.2, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\..\..\..\..\bin\net\2.0\debug\Spring.Web.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="IntegrationTests\FulfillmentServiceTests.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\Spring.Aspects\Spring.Aspects.csproj">
|
||||
<Project>{53B04C54-63EA-45AA-BB83-8950AF3C5D68}</Project>
|
||||
<Name>Spring.Aspects</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\src\Spring.Northwind.Dao.NHibernate\Spring.Northwind.Dao.NHibernate.csproj">
|
||||
<Project>{6E4F55A0-C281-4706-A08B-BDEC2D2FBDA4}</Project>
|
||||
<Name>Spring.Northwind.Dao.NHibernate</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\src\Spring.Northwind.Dao\Spring.Northwind.Dao.csproj">
|
||||
<Project>{7F45EEA2-50AC-44E2-85A6-2FFB02E38C44}</Project>
|
||||
<Name>Spring.Northwind.Dao</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\..\src\Spring.Northwind.Service\Spring.Northwind.Service.csproj">
|
||||
<Project>{9E15876F-E9E0-43B7-9874-B54F163757D6}</Project>
|
||||
<Name>Spring.Northwind.Service</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Aspects.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Dao.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="DeclarativeServicesAttributeDriven.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="DeclarativeServicesObjectNameDriven.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="DeclarativeServicesTxProxyFactoryDriven.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Services.xml">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>rem echo "Copying .xml files for tests"
|
||||
rem xcopy "$(ProjectDir)Data" ..\..\..\..\build\VS.Net.2005\Spring.Northwind.IntegrationTests\$(ConfigurationName)\ /y /s /q</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
This script installs 2 procedures 'BackupNorthwind' and 'RestoreNorthwind'
|
||||
|
||||
These procedures allow for easy backup and restore the Northwind Database during testing.
|
||||
The backup is done to C:\northwind.bak and also takes care to kill existing connections before doing a restore.
|
||||
|
||||
NOTE: You must ensure, that your MSSQL-Server process has write access to C:\ (or change directory below)
|
||||
*/
|
||||
|
||||
USE [master]
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [dbo].[spdd_DropDatabaseConnections] *****/
|
||||
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sp_DropDatabaseConnections]') AND type in (N'P', N'PC'))
|
||||
DROP PROCEDURE [dbo].[sp_DropDatabaseConnections]
|
||||
GO
|
||||
CREATE proc [dbo].[sp_DropDatabaseConnections]
|
||||
@dbname sysname
|
||||
as
|
||||
begin
|
||||
declare @spid int
|
||||
declare @killCmd nvarchar(50)
|
||||
declare processes cursor for
|
||||
select spid from master..sysprocesses
|
||||
where dbid = DB_ID(@dbname)
|
||||
|
||||
OPEN processes
|
||||
FETCH processes into @spid
|
||||
WHILE(@@fetch_status=0) BEGIN
|
||||
set @killCmd = N'KILL '+CAST(@spid as nvarchar(10))
|
||||
print N'Executing ''' + @killCmd + ''''
|
||||
exec sp_executesql @killCmd
|
||||
FETCH processes into @spid
|
||||
END
|
||||
|
||||
CLOSE processes
|
||||
DEALLOCATE processes
|
||||
end
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [dbo].[BackupNorthwind] Script Date: 05/25/2007 13:34:44 ******/
|
||||
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[BackupNorthwind]') AND type in (N'P', N'PC'))
|
||||
DROP PROCEDURE [dbo].[BackupNorthwind]
|
||||
GO
|
||||
create proc [dbo].[BackupNorthwind]
|
||||
as
|
||||
begin
|
||||
BACKUP DATABASE [northwind]
|
||||
TO DISK = N'C:\northwind.bak'
|
||||
WITH NAME = N'Northwind Full Database Backup', FORMAT, INIT, SKIP
|
||||
end
|
||||
GO
|
||||
|
||||
/****** Object: StoredProcedure [dbo].[RestoreNorthwind] Script Date: 05/25/2007 13:34:44 ******/
|
||||
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[RestoreNorthwind]') AND type in (N'P', N'PC'))
|
||||
DROP PROCEDURE [dbo].[RestoreNorthwind]
|
||||
GO
|
||||
CREATE proc [dbo].[RestoreNorthwind]
|
||||
as
|
||||
begin
|
||||
exec dbo.sp_DropDatabaseConnections N'northwind'
|
||||
RESTORE DATABASE [northwind] FROM DISK = N'C:\northwind.bak' WITH FILE = 1, REPLACE
|
||||
end
|
||||
GO
|
||||
Reference in New Issue
Block a user