You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
(248) |
May
(82) |
Jun
(90) |
Jul
(177) |
Aug
(253) |
Sep
(157) |
Oct
(151) |
Nov
(143) |
Dec
(278) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(152) |
Feb
(107) |
Mar
(177) |
Apr
(133) |
May
(259) |
Jun
(81) |
Jul
(119) |
Aug
(306) |
Sep
(416) |
Oct
(240) |
Nov
(329) |
Dec
(206) |
2006 |
Jan
(466) |
Feb
(382) |
Mar
(153) |
Apr
(162) |
May
(133) |
Jun
(21) |
Jul
(18) |
Aug
(37) |
Sep
(97) |
Oct
(114) |
Nov
(110) |
Dec
(28) |
2007 |
Jan
(74) |
Feb
(65) |
Mar
(49) |
Apr
(76) |
May
(43) |
Jun
(15) |
Jul
(68) |
Aug
(55) |
Sep
(63) |
Oct
(59) |
Nov
(70) |
Dec
(66) |
2008 |
Jan
(71) |
Feb
(60) |
Mar
(120) |
Apr
(31) |
May
(48) |
Jun
(81) |
Jul
(107) |
Aug
(51) |
Sep
(80) |
Oct
(83) |
Nov
(83) |
Dec
(79) |
2009 |
Jan
(83) |
Feb
(110) |
Mar
(97) |
Apr
(91) |
May
(291) |
Jun
(250) |
Jul
(197) |
Aug
(58) |
Sep
(54) |
Oct
(122) |
Nov
(68) |
Dec
(34) |
2010 |
Jan
(50) |
Feb
(17) |
Mar
(63) |
Apr
(61) |
May
(84) |
Jun
(81) |
Jul
(138) |
Aug
(144) |
Sep
(78) |
Oct
(26) |
Nov
(30) |
Dec
(61) |
2011 |
Jan
(33) |
Feb
(35) |
Mar
(166) |
Apr
(221) |
May
(109) |
Jun
(76) |
Jul
(27) |
Aug
(37) |
Sep
(1) |
Oct
(4) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(3) |
Oct
(2) |
Nov
|
Dec
(1) |
2014 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <fab...@us...> - 2009-07-17 17:02:49
|
Revision: 4650 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4650&view=rev Author: fabiomaulo Date: 2009-07-17 17:02:38 +0000 (Fri, 17 Jul 2009) Log Message: ----------- Refactoring to allow class usage for fluent-conf. Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Cfg/Configuration.cs trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/CfgXmlHelper.cs trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/ClassCacheConfiguration.cs trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/CollectionCacheConfiguration.cs trunk/nhibernate/src/NHibernate/NHibernate.csproj trunk/nhibernate/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj Added Paths: ----------- trunk/nhibernate/src/NHibernate/Cfg/EntityCacheUsage.cs trunk/nhibernate/src/NHibernate.Test/CfgTest/EntityCacheUsageParserFixture.cs Modified: trunk/nhibernate/src/NHibernate/Cfg/Configuration.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/Configuration.cs 2009-07-17 15:02:04 UTC (rev 4649) +++ trunk/nhibernate/src/NHibernate/Cfg/Configuration.cs 2009-07-17 17:02:38 UTC (rev 4650) @@ -1434,7 +1434,7 @@ { string region = string.IsNullOrEmpty(ccc.Region) ? ccc.Class : ccc.Region; bool includeLazy = (ccc.Include != ClassCacheInclude.NonLazy); - SetCacheConcurrencyStrategy(ccc.Class, CfgXmlHelper.ClassCacheUsageConvertToString(ccc.Usage), region, includeLazy); + SetCacheConcurrencyStrategy(ccc.Class, EntityCacheUsageParser.ToString(ccc.Usage), region, includeLazy); } // Load collection-cache @@ -1449,7 +1449,7 @@ } string region = string.IsNullOrEmpty(ccc.Region) ? role : ccc.Region; - SetCollectionCacheConcurrencyStrategy(role, CfgXmlHelper.ClassCacheUsageConvertToString(ccc.Usage), region); + SetCollectionCacheConcurrencyStrategy(role, EntityCacheUsageParser.ToString(ccc.Usage), region); } // Events Modified: trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/CfgXmlHelper.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/CfgXmlHelper.cs 2009-07-17 15:02:04 UTC (rev 4649) +++ trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/CfgXmlHelper.cs 2009-07-17 17:02:38 UTC (rev 4650) @@ -102,51 +102,6 @@ } /// <summary> - /// Convert a string to <see cref="ClassCacheUsage"/>. - /// </summary> - /// <param name="usage">The string that represent <see cref="ClassCacheUsage"/>.</param> - /// <returns> - /// The <paramref name="usage"/> converted to <see cref="ClassCacheUsage"/>. - /// </returns> - /// <exception cref="HibernateConfigException">If the values is invalid.</exception> - /// <remarks> - /// See <see cref="ClassCacheUsage"/> for allowed values. - /// </remarks> - public static ClassCacheUsage ClassCacheUsageConvertFrom(string usage) - { - switch (usage) - { - case "read-only": - return ClassCacheUsage.Readonly; - case "read-write": - return ClassCacheUsage.ReadWrite; - case "nonstrict-read-write": - return ClassCacheUsage.NonStrictReadWrite; - case "transactional": - return ClassCacheUsage.Transactional; - default: - throw new HibernateConfigException(string.Format("Invalid ClassCacheUsage value:{0}", usage)); - } - } - - internal static string ClassCacheUsageConvertToString(ClassCacheUsage usage) - { - switch (usage) - { - case ClassCacheUsage.Readonly: - return "read-only"; - case ClassCacheUsage.ReadWrite: - return "read-write"; - case ClassCacheUsage.NonStrictReadWrite: - return "nonstrict-read-write"; - case ClassCacheUsage.Transactional: - return "transactional"; - default: - return string.Empty; - } - } - - /// <summary> /// Convert a string to <see cref="ClassCacheInclude"/>. /// </summary> /// <param name="include">The string that represent <see cref="ClassCacheInclude"/>.</param> Modified: trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/ClassCacheConfiguration.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/ClassCacheConfiguration.cs 2009-07-17 15:02:04 UTC (rev 4649) +++ trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/ClassCacheConfiguration.cs 2009-07-17 17:02:38 UTC (rev 4650) @@ -4,21 +4,6 @@ namespace NHibernate.Cfg.ConfigurationSchema { /// <summary> - /// Values for class-cache and collection-cache strategy. - /// </summary> - public enum ClassCacheUsage - { - /// <summary>Xml value: read-only</summary> - Readonly, - /// <summary>Xml value: read-write</summary> - ReadWrite, - /// <summary>Xml value: nonstrict-read-write</summary> - NonStrictReadWrite, - /// <summary>Xml value: transactional</summary> - Transactional - } - - /// <summary> /// Values for class-cache include. /// </summary> /// <remarks>Not implemented in Cache.</remarks> @@ -47,7 +32,7 @@ /// <param name="clazz">The class full name.</param> /// <param name="usage">Cache strategy.</param> /// <exception cref="ArgumentException">When <paramref name="clazz"/> is null or empty.</exception> - public ClassCacheConfiguration(string clazz, ClassCacheUsage usage) + public ClassCacheConfiguration(string clazz, EntityCacheUsage usage) { if (string.IsNullOrEmpty(clazz)) throw new ArgumentException("clazz is null or empty.", "clazz"); @@ -62,7 +47,7 @@ /// <param name="usage">Cache strategy.</param> /// <param name="include">Values for class-cache include.</param> /// <exception cref="ArgumentException">When <paramref name="clazz"/> is null or empty.</exception> - public ClassCacheConfiguration(string clazz, ClassCacheUsage usage, ClassCacheInclude include) + public ClassCacheConfiguration(string clazz, EntityCacheUsage usage, ClassCacheInclude include) : this(clazz, usage) { this.include = include; @@ -75,7 +60,7 @@ /// <param name="usage">Cache strategy.</param> /// <param name="region">The cache region.</param> /// <exception cref="ArgumentException">When <paramref name="clazz"/> is null or empty.</exception> - public ClassCacheConfiguration(string clazz, ClassCacheUsage usage, string region) + public ClassCacheConfiguration(string clazz, EntityCacheUsage usage, string region) : this(clazz, usage) { this.region = region; @@ -89,7 +74,7 @@ /// <param name="include">Values for class-cache include.</param> /// <param name="region">The cache region.</param> /// <exception cref="ArgumentException">When <paramref name="clazz"/> is null or empty.</exception> - public ClassCacheConfiguration(string clazz, ClassCacheUsage usage, ClassCacheInclude include, string region) + public ClassCacheConfiguration(string clazz, EntityCacheUsage usage, ClassCacheInclude include, string region) : this(clazz, usage, include) { this.region = region; @@ -109,7 +94,7 @@ clazz = classCacheElement.Value; break; case "usage": - usage = CfgXmlHelper.ClassCacheUsageConvertFrom(classCacheElement.Value); + usage = EntityCacheUsageParser.Parse(classCacheElement.Value); break; case "region": region = classCacheElement.Value; @@ -143,11 +128,11 @@ } - private ClassCacheUsage usage; + private EntityCacheUsage usage; /// <summary> /// Cache strategy. /// </summary> - public ClassCacheUsage Usage + public EntityCacheUsage Usage { get { return usage; } } Modified: trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/CollectionCacheConfiguration.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/CollectionCacheConfiguration.cs 2009-07-17 15:02:04 UTC (rev 4649) +++ trunk/nhibernate/src/NHibernate/Cfg/ConfigurationSchema/CollectionCacheConfiguration.cs 2009-07-17 17:02:38 UTC (rev 4650) @@ -19,7 +19,7 @@ /// <param name="collection">The cache role.</param> /// <param name="usage">Cache strategy.</param> /// <exception cref="ArgumentException">When <paramref name="collection"/> is null or empty.</exception> - public CollectionCacheConfiguration(string collection, ClassCacheUsage usage) + public CollectionCacheConfiguration(string collection, EntityCacheUsage usage) { if (String.IsNullOrEmpty(collection)) throw new ArgumentException("collection is null or empty.", "collection"); @@ -34,7 +34,7 @@ /// <param name="usage">Cache strategy.</param> /// <param name="region">The cache region.</param> /// <exception cref="ArgumentException">When <paramref name="collection"/> is null or empty.</exception> - public CollectionCacheConfiguration(string collection, ClassCacheUsage usage, string region) + public CollectionCacheConfiguration(string collection, EntityCacheUsage usage, string region) :this(collection,usage) { this.region = region; @@ -54,7 +54,7 @@ collection = collectionCacheElement.Value; break; case "usage": - usage = CfgXmlHelper.ClassCacheUsageConvertFrom(collectionCacheElement.Value); + usage = EntityCacheUsageParser.Parse(collectionCacheElement.Value); break; case "region": region = collectionCacheElement.Value; @@ -84,11 +84,11 @@ get { return region; } } - private ClassCacheUsage usage; + private EntityCacheUsage usage; /// <summary> /// Cache strategy. /// </summary> - public ClassCacheUsage Usage + public EntityCacheUsage Usage { get { return usage; } } Added: trunk/nhibernate/src/NHibernate/Cfg/EntityCacheUsage.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/EntityCacheUsage.cs (rev 0) +++ trunk/nhibernate/src/NHibernate/Cfg/EntityCacheUsage.cs 2009-07-17 17:02:38 UTC (rev 4650) @@ -0,0 +1,78 @@ +namespace NHibernate.Cfg +{ + /// <summary> + /// Values for class-cache and collection-cache strategy. + /// </summary> + public enum EntityCacheUsage + { + /// <summary>Xml value: read-only</summary> + Readonly, + /// <summary>Xml value: read-write</summary> + ReadWrite, + /// <summary>Xml value: nonstrict-read-write</summary> + NonStrictReadWrite, + /// <summary>Xml value: transactional</summary> + Transactional + } + + /// <summary> + /// Helper to parse <see cref="EntityCacheUsage"/> to and from XML string value. + /// </summary> + public static class EntityCacheUsageParser + { + private const string ReadOnlyXmlValue = "read-only"; + private const string ReadWriteXmlValue = "read-write"; + private const string NonstrictReadWriteXmlValue = "nonstrict-read-write"; + private const string TransactionalXmlValue = "transactional"; + + /// <summary> + /// Convert a <see cref="EntityCacheUsage"/> in its xml expected value. + /// </summary> + /// <param name="value">The <see cref="EntityCacheUsage"/> to convert.</param> + /// <returns>The <see cref="EntityCacheUsage"/>.</returns> + public static string ToString(EntityCacheUsage value) + { + switch (value) + { + case EntityCacheUsage.Readonly: + return ReadOnlyXmlValue; + case EntityCacheUsage.ReadWrite: + return ReadWriteXmlValue; + case EntityCacheUsage.NonStrictReadWrite: + return NonstrictReadWriteXmlValue; + case EntityCacheUsage.Transactional: + return TransactionalXmlValue; + default: + return string.Empty; + } + } + + /// <summary> + /// Convert a string to <see cref="EntityCacheUsage"/>. + /// </summary> + /// <param name="value">The string that represent <see cref="EntityCacheUsage"/>.</param> + /// <returns> + /// The <paramref name="value"/> converted to <see cref="EntityCacheUsage"/>. + /// </returns> + /// <exception cref="HibernateConfigException">If the values is invalid.</exception> + /// <remarks> + /// See <see cref="EntityCacheUsage"/> for allowed values. + /// </remarks> + public static EntityCacheUsage Parse(string value) + { + switch (value) + { + case ReadOnlyXmlValue: + return EntityCacheUsage.Readonly; + case ReadWriteXmlValue: + return EntityCacheUsage.ReadWrite; + case NonstrictReadWriteXmlValue: + return EntityCacheUsage.NonStrictReadWrite; + case TransactionalXmlValue: + return EntityCacheUsage.Transactional; + default: + throw new HibernateConfigException(string.Format("Invalid EntityCacheUsage value:{0}", value)); + } + } + } +} \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate/NHibernate.csproj =================================================================== --- trunk/nhibernate/src/NHibernate/NHibernate.csproj 2009-07-17 15:02:04 UTC (rev 4649) +++ trunk/nhibernate/src/NHibernate/NHibernate.csproj 2009-07-17 17:02:38 UTC (rev 4650) @@ -459,6 +459,7 @@ <Compile Include="Bytecode\ProxyFactoryFactoryNotConfiguredException.cs" /> <Compile Include="Bytecode\UnableToLoadProxyFactoryFactoryException.cs" /> <Compile Include="Cache\FakeCache.cs" /> + <Compile Include="Cfg\EntityCacheUsage.cs" /> <Compile Include="Cfg\Hbm2ddlKeyWords.cs" /> <Compile Include="Cfg\Loquacious\CacheConfiguration.cs" /> <Compile Include="Cfg\Loquacious\ConfigurationExtensions.cs" /> Modified: trunk/nhibernate/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs 2009-07-17 15:02:04 UTC (rev 4649) +++ trunk/nhibernate/src/NHibernate.Test/CfgTest/ConfigurationSchemaFixture.cs 2009-07-17 17:02:38 UTC (rev 4650) @@ -178,7 +178,7 @@ HibernateConfiguration hc = new HibernateConfiguration(xtr); Assert.AreEqual(1, hc.SessionFactory.ClassesCache.Count); Assert.AreEqual("Class1", hc.SessionFactory.ClassesCache[0].Class); - Assert.AreEqual(ClassCacheUsage.Readonly, hc.SessionFactory.ClassesCache[0].Usage); + Assert.AreEqual(EntityCacheUsage.Readonly, hc.SessionFactory.ClassesCache[0].Usage); Assert.AreEqual(ClassCacheInclude.NonLazy, hc.SessionFactory.ClassesCache[0].Include); Assert.AreEqual("ARegion", hc.SessionFactory.ClassesCache[0].Region); } @@ -198,7 +198,7 @@ HibernateConfiguration hc = new HibernateConfiguration(xtr); Assert.AreEqual(1, hc.SessionFactory.CollectionsCache.Count); Assert.AreEqual("Collection1", hc.SessionFactory.CollectionsCache[0].Collection); - Assert.AreEqual(ClassCacheUsage.NonStrictReadWrite, hc.SessionFactory.CollectionsCache[0].Usage); + Assert.AreEqual(EntityCacheUsage.NonStrictReadWrite, hc.SessionFactory.CollectionsCache[0].Usage); Assert.AreEqual("ARegion", hc.SessionFactory.CollectionsCache[0].Region); } Added: trunk/nhibernate/src/NHibernate.Test/CfgTest/EntityCacheUsageParserFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/CfgTest/EntityCacheUsageParserFixture.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/CfgTest/EntityCacheUsageParserFixture.cs 2009-07-17 17:02:38 UTC (rev 4650) @@ -0,0 +1,27 @@ +using NHibernate.Cfg; +using NUnit.Framework; + +namespace NHibernate.Test.CfgTest +{ + [TestFixture] + public class EntityCacheUsageParserFixture + { + [Test] + public void CovertToString() + { + Assert.That(EntityCacheUsageParser.ToString(EntityCacheUsage.Readonly), Is.EqualTo("read-only")); + Assert.That(EntityCacheUsageParser.ToString(EntityCacheUsage.ReadWrite), Is.EqualTo("read-write")); + Assert.That(EntityCacheUsageParser.ToString(EntityCacheUsage.NonStrictReadWrite), Is.EqualTo("nonstrict-read-write")); + Assert.That(EntityCacheUsageParser.ToString(EntityCacheUsage.Transactional), Is.EqualTo("transactional")); + } + + [Test] + public void Parse() + { + Assert.That(EntityCacheUsageParser.Parse("read-only"), Is.EqualTo(EntityCacheUsage.Readonly)); + Assert.That(EntityCacheUsageParser.Parse("read-write"), Is.EqualTo(EntityCacheUsage.ReadWrite)); + Assert.That(EntityCacheUsageParser.Parse("nonstrict-read-write"), Is.EqualTo(EntityCacheUsage.NonStrictReadWrite)); + Assert.That(EntityCacheUsageParser.Parse("transactional"), Is.EqualTo(EntityCacheUsage.Transactional)); + } + } +} \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2009-07-17 15:02:04 UTC (rev 4649) +++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2009-07-17 17:02:38 UTC (rev 4650) @@ -104,6 +104,7 @@ <Compile Include="CfgTest\ConfigurationSchemaFixture.cs" /> <Compile Include="CfgTest\ConfigurationSerializationTests.cs" /> <Compile Include="CfgTest\DefaultNsAssmFixture.cs" /> + <Compile Include="CfgTest\EntityCacheUsageParserFixture.cs" /> <Compile Include="CfgTest\HbmBinderFixture.cs" /> <Compile Include="CfgTest\HbmOrderingFixture.cs" /> <Compile Include="CfgTest\LocatedInTestAssembly.cs" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <te...@us...> - 2009-07-17 15:02:06
|
Revision: 4649 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4649&view=rev Author: tehlike Date: 2009-07-17 15:02:04 +0000 (Fri, 17 Jul 2009) Log Message: ----------- Removing reference and sourcez zips from the teamcity build Modified Paths: -------------- trunk/nhibernate/teamcity.build Modified: trunk/nhibernate/teamcity.build =================================================================== --- trunk/nhibernate/teamcity.build 2009-07-17 14:42:29 UTC (rev 4648) +++ trunk/nhibernate/teamcity.build 2009-07-17 15:02:04 UTC (rev 4649) @@ -8,7 +8,7 @@ <property name="build.number" value="${CCNetLabel}" if="${property::exists('CCNetLabel')}" /> - <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration package"> + <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration binaries test binaries-zip"> </target> <target name="copy-teamcity-configuration"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-17 14:42:31
|
Revision: 4648 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4648&view=rev Author: fabiomaulo Date: 2009-07-17 14:42:29 +0000 (Fri, 17 Jul 2009) Log Message: ----------- Merge r4647 Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Cfg/MappingSchema/AbstractDecoratable.cs trunk/nhibernate/src/NHibernate.Test/MappingTest/NonReflectiveBinderFixture.cs Modified: trunk/nhibernate/src/NHibernate/Cfg/MappingSchema/AbstractDecoratable.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Cfg/MappingSchema/AbstractDecoratable.cs 2009-07-17 14:24:31 UTC (rev 4647) +++ trunk/nhibernate/src/NHibernate/Cfg/MappingSchema/AbstractDecoratable.cs 2009-07-17 14:42:29 UTC (rev 4648) @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Xml.Serialization; using NHibernate.Mapping; using NHibernate.Util; @@ -10,7 +11,12 @@ { private static readonly IDictionary<string, MetaAttribute> EmptyMetaData = new CollectionHelper.EmptyMapClass<string, MetaAttribute>(); + [NonSerialized] + [XmlIgnore] private IDictionary<string, MetaAttribute> mappedMetaData; + + [NonSerialized] + [XmlIgnore] private IDictionary<string, MetaAttribute> inheritableMetaData; public virtual IDictionary<string, MetaAttribute> MappedMetaData Modified: trunk/nhibernate/src/NHibernate.Test/MappingTest/NonReflectiveBinderFixture.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/MappingTest/NonReflectiveBinderFixture.cs 2009-07-17 14:24:31 UTC (rev 4647) +++ trunk/nhibernate/src/NHibernate.Test/MappingTest/NonReflectiveBinderFixture.cs 2009-07-17 14:42:29 UTC (rev 4648) @@ -1,4 +1,6 @@ +using System.IO; using NHibernate.Cfg; +using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping; using NUnit.Framework; @@ -180,5 +182,17 @@ metaAttribute = cm.GetMetaAttribute("Auditable"); Assert.That(metaAttribute, Is.Not.Null); } + + [Test] + public void XmlSerialization() + { + // NH-1865 (have a look to comments in JIRA) + var mdp = new MappingDocumentParser(); + using (Stream stream = GetType().Assembly.GetManifestResourceStream("NHibernate.Test.MappingTest.Wicked.hbm.xml")) + { + HbmMapping mapping = mdp.Parse(stream); + Assert.That(mapping, Is.XmlSerializable); + } + } } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-17 14:24:32
|
Revision: 4647 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4647&view=rev Author: fabiomaulo Date: 2009-07-17 14:24:31 +0000 (Fri, 17 Jul 2009) Log Message: ----------- perhaps fix of NH-1865 (can't recreate the issue in .NET). Modified Paths: -------------- branches/2.1.x/nhibernate/src/NHibernate/Cfg/MappingSchema/AbstractDecoratable.cs branches/2.1.x/nhibernate/src/NHibernate.Test/MappingTest/NonReflectiveBinderFixture.cs Modified: branches/2.1.x/nhibernate/src/NHibernate/Cfg/MappingSchema/AbstractDecoratable.cs =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate/Cfg/MappingSchema/AbstractDecoratable.cs 2009-07-17 12:59:43 UTC (rev 4646) +++ branches/2.1.x/nhibernate/src/NHibernate/Cfg/MappingSchema/AbstractDecoratable.cs 2009-07-17 14:24:31 UTC (rev 4647) @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Xml.Serialization; using NHibernate.Mapping; using NHibernate.Util; @@ -10,7 +11,12 @@ { private static readonly IDictionary<string, MetaAttribute> EmptyMetaData = new CollectionHelper.EmptyMapClass<string, MetaAttribute>(); + [NonSerialized] + [XmlIgnore] private IDictionary<string, MetaAttribute> mappedMetaData; + + [NonSerialized] + [XmlIgnore] private IDictionary<string, MetaAttribute> inheritableMetaData; public virtual IDictionary<string, MetaAttribute> MappedMetaData Modified: branches/2.1.x/nhibernate/src/NHibernate.Test/MappingTest/NonReflectiveBinderFixture.cs =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Test/MappingTest/NonReflectiveBinderFixture.cs 2009-07-17 12:59:43 UTC (rev 4646) +++ branches/2.1.x/nhibernate/src/NHibernate.Test/MappingTest/NonReflectiveBinderFixture.cs 2009-07-17 14:24:31 UTC (rev 4647) @@ -1,4 +1,6 @@ +using System.IO; using NHibernate.Cfg; +using NHibernate.Cfg.MappingSchema; using NHibernate.Mapping; using NUnit.Framework; @@ -180,5 +182,17 @@ metaAttribute = cm.GetMetaAttribute("Auditable"); Assert.That(metaAttribute, Is.Not.Null); } + + [Test] + public void XmlSerialization() + { + // NH-1865 (have a look to comments in JIRA) + var mdp = new MappingDocumentParser(); + using (Stream stream = GetType().Assembly.GetManifestResourceStream("NHibernate.Test.MappingTest.Wicked.hbm.xml")) + { + HbmMapping mapping = mdp.Parse(stream); + Assert.That(mapping, Is.XmlSerializable); + } + } } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-17 12:59:45
|
Revision: 4646 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4646&view=rev Author: fabiomaulo Date: 2009-07-17 12:59:43 +0000 (Fri, 17 Jul 2009) Log Message: ----------- Revert r3849 because NH-1890 (ugly but needed). Modified Paths: -------------- trunk/nhibernate/lib/net/3.5/Iesi.Collections.dll trunk/nhibernate/src/Iesi.Collections/Iesi.Collections.build trunk/nhibernate/src/Iesi.Collections.Test/Iesi.Collections.Test.build Modified: trunk/nhibernate/lib/net/3.5/Iesi.Collections.dll =================================================================== (Binary files differ) Modified: trunk/nhibernate/src/Iesi.Collections/Iesi.Collections.build =================================================================== --- trunk/nhibernate/src/Iesi.Collections/Iesi.Collections.build 2009-07-17 12:56:10 UTC (rev 4645) +++ trunk/nhibernate/src/Iesi.Collections/Iesi.Collections.build 2009-07-17 12:59:43 UTC (rev 4646) @@ -18,7 +18,7 @@ value="Declaration of code in public domain can be found in comment by Jason Smith at http://www.codeproject.com/csharp/sets.asp#xx703510xx. Copyright © 2002-2004 by Aidant Systems, Inc., and by Jason Smith." /> <property name="assembly.version" value="1.0.1.0" /> <property name="assembly.version.informational" value="1.0" /> - <property name="assembly.version.file" value="1.0.1.0" /> + <!-- NOTE : Don't add file version see NH-1890 issue --> <property name="assembly.allow-partially-trusted-callers" value="true" /> <property name="clover.instrument" value="true" /> Modified: trunk/nhibernate/src/Iesi.Collections.Test/Iesi.Collections.Test.build =================================================================== --- trunk/nhibernate/src/Iesi.Collections.Test/Iesi.Collections.Test.build 2009-07-17 12:56:10 UTC (rev 4645) +++ trunk/nhibernate/src/Iesi.Collections.Test/Iesi.Collections.Test.build 2009-07-17 12:59:43 UTC (rev 4646) @@ -16,7 +16,6 @@ <property name="assembly.description" value="The Unit Tests for Iesi.Collections." /> <property name="assembly.version" value="1.0.1.0" /> <property name="assembly.version.informational" value="1.0" /> - <property name="assembly.version.file" value="1.0.1.0" /> <property name="clover.instrument" value="false" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-17 12:56:13
|
Revision: 4645 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4645&view=rev Author: fabiomaulo Date: 2009-07-17 12:56:10 +0000 (Fri, 17 Jul 2009) Log Message: ----------- Revert r3849 because NH-1890 (ugly but needed). Modified Paths: -------------- branches/2.1.x/nhibernate/lib/net/2.0/Iesi.Collections.dll branches/2.1.x/nhibernate/lib/net/3.5/Iesi.Collections.dll branches/2.1.x/nhibernate/src/Iesi.Collections/Iesi.Collections.build branches/2.1.x/nhibernate/src/Iesi.Collections.Test/Iesi.Collections.Test.build Modified: branches/2.1.x/nhibernate/lib/net/2.0/Iesi.Collections.dll =================================================================== (Binary files differ) Modified: branches/2.1.x/nhibernate/lib/net/3.5/Iesi.Collections.dll =================================================================== (Binary files differ) Modified: branches/2.1.x/nhibernate/src/Iesi.Collections/Iesi.Collections.build =================================================================== --- branches/2.1.x/nhibernate/src/Iesi.Collections/Iesi.Collections.build 2009-07-16 17:03:34 UTC (rev 4644) +++ branches/2.1.x/nhibernate/src/Iesi.Collections/Iesi.Collections.build 2009-07-17 12:56:10 UTC (rev 4645) @@ -18,7 +18,7 @@ value="Declaration of code in public domain can be found in comment by Jason Smith at http://www.codeproject.com/csharp/sets.asp#xx703510xx. Copyright © 2002-2004 by Aidant Systems, Inc., and by Jason Smith." /> <property name="assembly.version" value="1.0.1.0" /> <property name="assembly.version.informational" value="1.0" /> - <property name="assembly.version.file" value="1.0.1.0" /> + <!-- NOTE : Don't add file version see NH-1890 issue --> <property name="assembly.allow-partially-trusted-callers" value="true" /> <property name="clover.instrument" value="true" /> Modified: branches/2.1.x/nhibernate/src/Iesi.Collections.Test/Iesi.Collections.Test.build =================================================================== --- branches/2.1.x/nhibernate/src/Iesi.Collections.Test/Iesi.Collections.Test.build 2009-07-16 17:03:34 UTC (rev 4644) +++ branches/2.1.x/nhibernate/src/Iesi.Collections.Test/Iesi.Collections.Test.build 2009-07-17 12:56:10 UTC (rev 4645) @@ -16,7 +16,6 @@ <property name="assembly.description" value="The Unit Tests for Iesi.Collections." /> <property name="assembly.version" value="1.0.1.0" /> <property name="assembly.version.informational" value="1.0" /> - <property name="assembly.version.file" value="1.0.1.0" /> <property name="clover.instrument" value="false" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Endries P. <bu...@ag...> - 2009-07-16 21:53:28
|
5 Rearsons To Choose Absstinence.www[dot]te26[dot]com |
From: <fab...@us...> - 2009-07-16 17:03:42
|
Revision: 4644 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4644&view=rev Author: fabiomaulo Date: 2009-07-16 17:03:34 +0000 (Thu, 16 Jul 2009) Log Message: ----------- Merge r4643 Modified Paths: -------------- branches/2.1.x/nhibernate/build-common/common-project.xml branches/2.1.x/nhibernate/build-common/common.xml Modified: branches/2.1.x/nhibernate/build-common/common-project.xml =================================================================== --- branches/2.1.x/nhibernate/build-common/common-project.xml 2009-07-16 17:02:39 UTC (rev 4643) +++ branches/2.1.x/nhibernate/build-common/common-project.xml 2009-07-16 17:03:34 UTC (rev 4644) @@ -108,6 +108,7 @@ output="${bin.dir}/${project::get-name()}.dll" doc="${bin.dir}/${project::get-name()}.xml" if="${sign}" + optimize="${build.release}" > <nowarn> <warning number="1591" /> <!-- No XML comment for publicly visible member --> @@ -124,6 +125,7 @@ output="${bin.dir}/${project::get-name()}.dll" doc="${bin.dir}/${project::get-name()}.xml" unless="${sign}" + optimize="${build.release}" > <nowarn> <warning number="1591" /> <!-- No XML comment for publicly visible member --> Modified: branches/2.1.x/nhibernate/build-common/common.xml =================================================================== --- branches/2.1.x/nhibernate/build-common/common.xml 2009-07-16 17:02:39 UTC (rev 4643) +++ branches/2.1.x/nhibernate/build-common/common.xml 2009-07-16 17:03:34 UTC (rev 4644) @@ -146,11 +146,13 @@ <!-- named project configurations --> <target name="set-debug-project-configuration" description="Perform a 'debug' build"> + <property name="build.release" value="false" /> <property name="build.debug" value="true" /> <property name="build.name" value="NHibernate-${project.version}-${project.config}" /> </target> <target name="set-release-project-configuration" description="Perform a 'release' build"> + <property name="build.release" value="true" /> <property name="build.debug" value="false" /> <property name="build.name" value="NHibernate-${project.version}" /> </target> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-16 17:02:49
|
Revision: 4643 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4643&view=rev Author: fabiomaulo Date: 2009-07-16 17:02:39 +0000 (Thu, 16 Jul 2009) Log Message: ----------- Optimization only in release mode. Modified Paths: -------------- trunk/nhibernate/build-common/common-project.xml trunk/nhibernate/build-common/common.xml Modified: trunk/nhibernate/build-common/common-project.xml =================================================================== --- trunk/nhibernate/build-common/common-project.xml 2009-07-16 08:29:56 UTC (rev 4642) +++ trunk/nhibernate/build-common/common-project.xml 2009-07-16 17:02:39 UTC (rev 4643) @@ -146,7 +146,7 @@ debug="${build.debug}" output="${bin.dir}/${project::get-name()}.exe" if="${sign}" - optimize="true" + optimize="${build.release}" > <nowarn> <warning number="1591" /> <!-- No XML comment for publicly visible member --> @@ -162,7 +162,7 @@ debug="${build.debug}" output="${bin.dir}/${project::get-name()}.exe" unless="${sign}" - optimize="true" + optimize="${build.release}" > <nowarn> <warning number="1591" /> <!-- No XML comment for publicly visible member --> Modified: trunk/nhibernate/build-common/common.xml =================================================================== --- trunk/nhibernate/build-common/common.xml 2009-07-16 08:29:56 UTC (rev 4642) +++ trunk/nhibernate/build-common/common.xml 2009-07-16 17:02:39 UTC (rev 4643) @@ -154,11 +154,13 @@ <!-- named project configurations --> <target name="set-debug-project-configuration" description="Perform a 'debug' build"> + <property name="build.release" value="false" /> <property name="build.debug" value="true" /> <property name="build.name" value="NHibernate-${project.version}-${project.config}" /> </target> <target name="set-release-project-configuration" description="Perform a 'release' build"> + <property name="build.release" value="true" /> <property name="build.debug" value="false" /> <property name="build.name" value="NHibernate-${project.version}" /> </target> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <te...@us...> - 2009-07-16 08:29:57
|
Revision: 4642 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4642&view=rev Author: tehlike Date: 2009-07-16 08:29:56 +0000 (Thu, 16 Jul 2009) Log Message: ----------- Making it possible to skip manual, as it needs external dependency. Modified Paths: -------------- trunk/nhibernate/default.build trunk/nhibernate/teamcity.build Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2009-07-15 22:43:58 UTC (rev 4641) +++ trunk/nhibernate/default.build 2009-07-16 08:29:56 UTC (rev 4642) @@ -11,7 +11,7 @@ <!-- Pass -D:skip.tests=true to NAnt to skip running tests when building --> <property name="skip.tests" value="false" overwrite="false" /> - + <property name="skip.manual" value="false" overwrite="false" /> <!-- Supported versions of .NET Framework, separated by spaces. Used by *-all-frameworks targets. @@ -152,14 +152,14 @@ <nant buildfile="doc/documentation.build" target="api manual" /> </target> - <target name="reference" depends="init binaries" + <target name="reference" depends="init binaries" unless="${skip.manual}" description="Builds Reference Manual"> <nant buildfile="doc/documentation.build" target="manual" /> </target> - <target name="reference-zip" depends="init binaries" + <target name="reference-zip" depends="init binaries" unless="${skip.manual}" description="Builds Reference Manual zip"> - <nant buildfile="doc/documentation.build" target="manual-zip" /> + <nant buildfile="doc/documentation.build" target="manual-zip"/> </target> <target name="api" depends="init binaries" Modified: trunk/nhibernate/teamcity.build =================================================================== --- trunk/nhibernate/teamcity.build 2009-07-15 22:43:58 UTC (rev 4641) +++ trunk/nhibernate/teamcity.build 2009-07-16 08:29:56 UTC (rev 4642) @@ -8,7 +8,7 @@ <property name="build.number" value="${CCNetLabel}" if="${property::exists('CCNetLabel')}" /> - <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration build test"> + <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration package"> </target> <target name="copy-teamcity-configuration"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <te...@us...> - 2009-07-15 22:44:07
|
Revision: 4641 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4641&view=rev Author: tehlike Date: 2009-07-15 22:43:58 +0000 (Wed, 15 Jul 2009) Log Message: ----------- Modified Paths: -------------- trunk/nhibernate/teamcity.build Modified: trunk/nhibernate/teamcity.build =================================================================== --- trunk/nhibernate/teamcity.build 2009-07-15 22:28:37 UTC (rev 4640) +++ trunk/nhibernate/teamcity.build 2009-07-15 22:43:58 UTC (rev 4641) @@ -2,13 +2,13 @@ <project name="NHibernate TeamCity Build" xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" default="clean-configure-test"> <property name="root.dir" value="." /> <include buildfile="${root.dir}/default.build" /> - <if test="${not property::exists('CCNetLabel') and not property::exists('build.number')}"> <fail>This build file is for use with CruiseControl.NET or TeamCity</fail> </if> + <property name="build.number" value="${CCNetLabel}" if="${property::exists('CCNetLabel')}" /> - <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration package"> + <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration build test"> </target> <target name="copy-teamcity-configuration"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <te...@us...> - 2009-07-15 22:28:42
|
Revision: 4640 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4640&view=rev Author: tehlike Date: 2009-07-15 22:28:37 +0000 (Wed, 15 Jul 2009) Log Message: ----------- Build file modifications: 1. Making project builds optimized 2. Adding "test" to package target dependencies. Modified Paths: -------------- trunk/nhibernate/build-common/common-project.xml trunk/nhibernate/build-common/common.xml trunk/nhibernate/default.build trunk/nhibernate/teamcity.build Modified: trunk/nhibernate/build-common/common-project.xml =================================================================== --- trunk/nhibernate/build-common/common-project.xml 2009-07-15 18:50:23 UTC (rev 4639) +++ trunk/nhibernate/build-common/common-project.xml 2009-07-15 22:28:37 UTC (rev 4640) @@ -146,6 +146,7 @@ debug="${build.debug}" output="${bin.dir}/${project::get-name()}.exe" if="${sign}" + optimize="true" > <nowarn> <warning number="1591" /> <!-- No XML comment for publicly visible member --> @@ -161,6 +162,7 @@ debug="${build.debug}" output="${bin.dir}/${project::get-name()}.exe" unless="${sign}" + optimize="true" > <nowarn> <warning number="1591" /> <!-- No XML comment for publicly visible member --> Modified: trunk/nhibernate/build-common/common.xml =================================================================== --- trunk/nhibernate/build-common/common.xml 2009-07-15 18:50:23 UTC (rev 4639) +++ trunk/nhibernate/build-common/common.xml 2009-07-15 22:28:37 UTC (rev 4640) @@ -173,7 +173,7 @@ <property name="build.root.dir" value="${root.dir}/build/${build.name}" /> <property name="build.dir" value="${build.root.dir}" /> - <property name="bin.dir" value="${build.dir}/bin/${nant.settings.currentframework}" dynamic="true" /> + <property name="bin.dir" value="${build.dir}/bin/${nant.settings.currentframework}" /> <property name="testresults.dir" value="${bin.dir}/test-results" /> <property name="tools.dir" value="${root.dir}/Tools"/> </target> Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2009-07-15 18:50:23 UTC (rev 4639) +++ trunk/nhibernate/default.build 2009-07-15 22:28:37 UTC (rev 4640) @@ -335,7 +335,7 @@ </copy> </target> - <target name="package" depends="init binaries reference-zip sources-zip binaries-zip" + <target name="package" depends="init binaries test reference-zip sources-zip binaries-zip" description="Creates files for the General Available Release on SourceForge"> <echo message="Created a '${project.config}' package in ${build.dir}" /> Modified: trunk/nhibernate/teamcity.build =================================================================== --- trunk/nhibernate/teamcity.build 2009-07-15 18:50:23 UTC (rev 4639) +++ trunk/nhibernate/teamcity.build 2009-07-15 22:28:37 UTC (rev 4640) @@ -2,13 +2,13 @@ <project name="NHibernate TeamCity Build" xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd" default="clean-configure-test"> <property name="root.dir" value="." /> <include buildfile="${root.dir}/default.build" /> + <if test="${not property::exists('CCNetLabel') and not property::exists('build.number')}"> <fail>This build file is for use with CruiseControl.NET or TeamCity</fail> </if> - <property name="build.number" value="${CCNetLabel}" if="${property::exists('CCNetLabel')}" /> - <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration build test"> + <target name="clean-configure-test" depends="cleanall init copy-teamcity-configuration package"> </target> <target name="copy-teamcity-configuration"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-15 18:50:28
|
Revision: 4639 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4639&view=rev Author: fabiomaulo Date: 2009-07-15 18:50:23 +0000 (Wed, 15 Jul 2009) Log Message: ----------- Merge r4638 (tasks for release) Modified Paths: -------------- trunk/nhibernate/default.build trunk/nhibernate/doc/documentation.build Added Paths: ----------- trunk/nhibernate/Choose_Only_One.txt trunk/nhibernate/GaRelease.bat trunk/nhibernate/HowInstall.txt Added: trunk/nhibernate/Choose_Only_One.txt =================================================================== --- trunk/nhibernate/Choose_Only_One.txt (rev 0) +++ trunk/nhibernate/Choose_Only_One.txt 2009-07-15 18:50:23 UTC (rev 4639) @@ -0,0 +1,2 @@ +You don't need all assemblies contained in this folder. +Choose only one system between available. Added: trunk/nhibernate/GaRelease.bat =================================================================== --- trunk/nhibernate/GaRelease.bat (rev 0) +++ trunk/nhibernate/GaRelease.bat 2009-07-15 18:50:23 UTC (rev 4639) @@ -0,0 +1 @@ +NAnt -D:project.config=release clean package Added: trunk/nhibernate/HowInstall.txt =================================================================== --- trunk/nhibernate/HowInstall.txt (rev 0) +++ trunk/nhibernate/HowInstall.txt 2009-07-15 18:50:23 UTC (rev 4639) @@ -0,0 +1,7 @@ +Required Bins : Minimal required assemblies to work with NHibernate + + +Required for LazyLoading : +NHibernate 2.1 has a new important feature regarding dynamic-proxy systems for lazy-loading +Details are available in releasenotes.txt and in this post +http://nhforge.org/blogs/nhibernate/archive/2008/11/09/nh2-1-0-bytecode-providers.aspx Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2009-07-15 18:47:57 UTC (rev 4638) +++ trunk/nhibernate/default.build 2009-07-15 18:50:23 UTC (rev 4639) @@ -152,11 +152,16 @@ <nant buildfile="doc/documentation.build" target="api manual" /> </target> - <target name="manual" depends="init binaries" - description="Builds the Help Documentation"> + <target name="reference" depends="init binaries" + description="Builds Reference Manual"> <nant buildfile="doc/documentation.build" target="manual" /> </target> + <target name="reference-zip" depends="init binaries" + description="Builds Reference Manual zip"> + <nant buildfile="doc/documentation.build" target="manual-zip" /> + </target> + <target name="api" depends="init binaries" description="Builds the API Documentation"> <nant buildfile="doc/documentation.build" target="api" /> @@ -247,91 +252,101 @@ </target> <target name="sources-zip" depends="init sources"> - <mkdir dir="${build.dir}/src" /> - <zip zipfile="${build.dir}/src/NHibernate-${project.version}-src.zip"> + <zip zipfile="${build.dir}/NHibernate-${project.version}-src.zip"> <fileset basedir="${source.tmpdir}"> <include name="**/*" /> </fileset> </zip> </target> - <target name="copy-release-notes" depends="init"> - <copy file="releasenotes.txt" todir="${build.dir}" /> - </target> - - <target name="copy-xml-schemas" depends="init"> - <!-- - TODO: Probably need to think of a better place for the XML schemas since - they are used by NHibernate and this build file. - --> - <copy todir="${build.dir}"> - <fileset basedir="src/NHibernate"> - <include name="nhibernate-mapping.xsd" /> - <include name="nhibernate-configuration.xsd" /> + <target name="binaries-zip" depends="init bin-pack"> + <zip zipfile="${build.dir}/NHibernate-${project.version}-bin.zip"> + <fileset basedir="${bin-pack.tmpdir}"> + <include name="**/*" /> </fileset> - </copy> + </zip> </target> - <target name="copy-config-templates" depends="init"> - <!-- - TODO: I don't like where these are put now. Should think of a better - place for these. - --> - <copy todir="${build.dir}/config.templates"> + <target name="bin-pack" depends="init binaries"> + <property name="bin-pack.tmpdir" value="${build.dir}/tmp-bin" /> + <property name="bin-pack.conf-template" value="${bin-pack.tmpdir}/Configuration_Templates" /> + <property name="bin-pack.required" value="${bin-pack.tmpdir}/Required_Bins" /> + <property name="bin-pack.requiredlazy" value="${bin-pack.tmpdir}/Required_For_LazyLoading" /> + <property name="bin-pack.tests" value="${bin-pack.tmpdir}/Tests" /> + + <copy file="releasenotes.txt" todir="${bin-pack.tmpdir}"/> + <copy file="readme.html" todir="${bin-pack.tmpdir}"/> + <copy file="lgpl.txt" todir="${bin-pack.tmpdir}"/> + <copy file="gfdl.txt" todir="${bin-pack.tmpdir}"/> + <copy file="HowInstall.txt" todir="${bin-pack.tmpdir}"/> + + <!--Configuration templates--> + <copy todir="${bin-pack.conf-template}"> <fileset basedir="src/NHibernate.Config.Templates"> <include name="*"/> </fileset> </copy> - </target> - - <target name="binaries-zip" depends="init binaries copy-release-notes copy-xml-schemas copy-config-templates"> - <zip zipfile="${build.dir}/bin/NHibernate-${project.version}-bin.zip"> - <fileset basedir="${build.dir}"> - <include name="releasenotes.txt" /> + + <!--Minimal Required Bins--> + <copy todir="${bin-pack.required}"> + <fileset basedir="src/NHibernate"> <include name="*.xsd" /> - <include name="bin/**" /> - - <exclude name="**/*.hbm.xml" /> - <exclude name="**/*.commandlog" /> - <exclude name="**/MyTest*" /> </fileset> - </zip> + </copy> + <copy todir="${bin-pack.required}"> + <fileset basedir="${bin.dir}"> + <include name="Antlr3.Runtime.dll" /> + <include name="Iesi.Collections.???" /> + <include name="log4net*" /> + <include name="NHibernate.???" /> + </fileset> + </copy> + <!--Required Bins for lazy loading NHibernate.ByteCode.Castle.dll--> + <copy file="Choose_Only_One.txt" todir="${bin-pack.requiredlazy}"/> + <copy todir="${bin-pack.requiredlazy}/Castle"> + <fileset basedir="${bin.dir}"> + <include name="Castle.*" /> + <include name="NHibernate.ByteCode.Castle.???" /> + </fileset> + </copy> + <copy todir="${bin-pack.requiredlazy}/LinFu"> + <fileset basedir="${bin.dir}"> + <include name="LinFu.*" /> + <include name="NHibernate.ByteCode.LinFu.???" /> + </fileset> + </copy> + <copy todir="${bin-pack.requiredlazy}/Spring"> + <fileset basedir="${bin.dir}"> + <include name="antlr.runtime.dll" /> + <include name="Common.Logging.dll" /> + <include name="Spring.*" /> + <include name="NHibernate.ByteCode.Spring.???" /> + </fileset> + </copy> + <!-- Tests --> + <copy file="${bin.dir}/TestEnbeddedConfig.cfg.xml" todir="${bin-pack.tests}"/> + <copy file="${bin.dir}/ABC.hbm.xml" todir="${bin-pack.tests}"/> + <copy todir="${bin-pack.tests}"> + <fileset basedir="${bin.dir}"> + <include name="nunit*" /> + <include name="NHibernate.Domain*" /> + <include name="NHibernate.Test*" /> + </fileset> + </copy> </target> + + <target name="package" depends="init binaries reference-zip sources-zip binaries-zip" + description="Creates files for the General Available Release on SourceForge"> - <target name="prepare-installer-files" depends="init sources-zip copy-release-notes" /> - - <target name="installer" depends="init binaries doc prepare-installer-files"> - <nant buildfile="src/NHibernate.Setup/NHibernate.Setup.build" target="msi" /> + <echo message="Created a '${project.config}' package in ${build.dir}" /> </target> - <target name="package" depends="init binaries manual sources-zip binaries-zip" - description="Creates files for the File Release System on SourceForge"> + <target name="release" depends="init binaries binaries-zip sources-zip" + description="Creates files for the partial (Alpha-Beta-Candidate) Release on SourceForge"> - <property name="dist.output.dir" value="${project::get-base-directory()}/build/" /> - <move todir="${dist.output.dir}" flatten="true" overwrite="true"> - <fileset basedir="${build.dir}"> - <include name="*.msi" /> - <include name="src/NHibernate-${project.version}-src.zip" /> - <include name="bin/NHibernate-${project.version}-bin.zip" /> - </fileset> - </move> - - <echo message="Created a '${project.config}' package in ${dist.output.dir}" /> - + <echo message="Created a '${project.config}' package in ${build.dir}" /> </target> - <target name="fxcop" depends="init" > - <exec program="${fxcop.exe}" - commandline="/f:${build.dir}\bin\nhibernate.dll /o:${build.dir}\bin\fxcop-results.xml" - failonerror="false"/> - </target> - - <target name="simian" depends="init" > - <exec program="${simian.exe}" verbose="true" - commandline="-recurse=src/*.cs -formatter=xml:${build.dir}\bin\simian-results.xml -failOnDuplication-" - failonerror="false"/> - </target> - <target name="visual-studio" depends="init" description="Modifies AssemblyInfo.cs files to work with Visual Studio"> <property name="visual-studio" value="true" /> <nant target="generate-assemblyinfo"> Modified: trunk/nhibernate/doc/documentation.build =================================================================== --- trunk/nhibernate/doc/documentation.build 2009-07-15 18:47:57 UTC (rev 4638) +++ trunk/nhibernate/doc/documentation.build 2009-07-15 18:50:23 UTC (rev 4639) @@ -32,6 +32,14 @@ </properties> </nant> </target> + + <target name="manual-zip" depends="manual"> + <zip zipfile="${build.dir}/NHibernate-${project.version}-reference.zip"> + <fileset basedir="${doc.out.dir}"> + <include name="**/*" /> + </fileset> + </zip> + </target> <target name="apidocbuilder-project" depends="init"> <copy file="NHibernate.shfbproj.template" tofile="NHibernate.shfbproj" overwrite="true"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-15 18:48:04
|
Revision: 4638 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4638&view=rev Author: fabiomaulo Date: 2009-07-15 18:47:57 +0000 (Wed, 15 Jul 2009) Log Message: ----------- Adjusted tasks for release and GA release (now all automated) Modified Paths: -------------- branches/2.1.x/nhibernate/default.build branches/2.1.x/nhibernate/doc/documentation.build Added Paths: ----------- branches/2.1.x/nhibernate/Choose_Only_One.txt branches/2.1.x/nhibernate/GaRelease.bat branches/2.1.x/nhibernate/HowInstall.txt Added: branches/2.1.x/nhibernate/Choose_Only_One.txt =================================================================== --- branches/2.1.x/nhibernate/Choose_Only_One.txt (rev 0) +++ branches/2.1.x/nhibernate/Choose_Only_One.txt 2009-07-15 18:47:57 UTC (rev 4638) @@ -0,0 +1,2 @@ +You don't need all assemblies contained in this folder. +Choose only one system between available. \ No newline at end of file Added: branches/2.1.x/nhibernate/GaRelease.bat =================================================================== --- branches/2.1.x/nhibernate/GaRelease.bat (rev 0) +++ branches/2.1.x/nhibernate/GaRelease.bat 2009-07-15 18:47:57 UTC (rev 4638) @@ -0,0 +1 @@ +NAnt -D:project.config=release clean package \ No newline at end of file Added: branches/2.1.x/nhibernate/HowInstall.txt =================================================================== --- branches/2.1.x/nhibernate/HowInstall.txt (rev 0) +++ branches/2.1.x/nhibernate/HowInstall.txt 2009-07-15 18:47:57 UTC (rev 4638) @@ -0,0 +1,7 @@ +Required Bins : Minimal required assemblies to work with NHibernate + + +Required for LazyLoading : +NHibernate 2.1 has a new important feature regarding dynamic-proxy systems for lazy-loading +Details are available in releasenotes.txt and in this post +http://nhforge.org/blogs/nhibernate/archive/2008/11/09/nh2-1-0-bytecode-providers.aspx Modified: branches/2.1.x/nhibernate/default.build =================================================================== --- branches/2.1.x/nhibernate/default.build 2009-07-15 17:34:19 UTC (rev 4637) +++ branches/2.1.x/nhibernate/default.build 2009-07-15 18:47:57 UTC (rev 4638) @@ -150,11 +150,16 @@ <nant buildfile="doc/documentation.build" target="api manual" /> </target> - <target name="manual" depends="init binaries" - description="Builds the Help Documentation"> + <target name="reference" depends="init binaries" + description="Builds Reference Manual"> <nant buildfile="doc/documentation.build" target="manual" /> </target> + <target name="reference-zip" depends="init binaries" + description="Builds Reference Manual zip"> + <nant buildfile="doc/documentation.build" target="manual-zip" /> + </target> + <target name="api" depends="init binaries" description="Builds the API Documentation"> <nant buildfile="doc/documentation.build" target="api" /> @@ -245,91 +250,101 @@ </target> <target name="sources-zip" depends="init sources"> - <mkdir dir="${build.dir}/src" /> - <zip zipfile="${build.dir}/src/NHibernate-${project.version}-src.zip"> + <zip zipfile="${build.dir}/NHibernate-${project.version}-src.zip"> <fileset basedir="${source.tmpdir}"> <include name="**/*" /> </fileset> </zip> </target> - <target name="copy-release-notes" depends="init"> - <copy file="releasenotes.txt" todir="${build.dir}" /> - </target> - - <target name="copy-xml-schemas" depends="init"> - <!-- - TODO: Probably need to think of a better place for the XML schemas since - they are used by NHibernate and this build file. - --> - <copy todir="${build.dir}"> - <fileset basedir="src/NHibernate"> - <include name="nhibernate-mapping.xsd" /> - <include name="nhibernate-configuration.xsd" /> + <target name="binaries-zip" depends="init bin-pack"> + <zip zipfile="${build.dir}/NHibernate-${project.version}-bin.zip"> + <fileset basedir="${bin-pack.tmpdir}"> + <include name="**/*" /> </fileset> - </copy> + </zip> </target> - <target name="copy-config-templates" depends="init"> - <!-- - TODO: I don't like where these are put now. Should think of a better - place for these. - --> - <copy todir="${build.dir}/config.templates"> + <target name="bin-pack" depends="init binaries"> + <property name="bin-pack.tmpdir" value="${build.dir}/tmp-bin" /> + <property name="bin-pack.conf-template" value="${bin-pack.tmpdir}/Configuration_Templates" /> + <property name="bin-pack.required" value="${bin-pack.tmpdir}/Required_Bins" /> + <property name="bin-pack.requiredlazy" value="${bin-pack.tmpdir}/Required_For_LazyLoading" /> + <property name="bin-pack.tests" value="${bin-pack.tmpdir}/Tests" /> + + <copy file="releasenotes.txt" todir="${bin-pack.tmpdir}"/> + <copy file="readme.html" todir="${bin-pack.tmpdir}"/> + <copy file="lgpl.txt" todir="${bin-pack.tmpdir}"/> + <copy file="gfdl.txt" todir="${bin-pack.tmpdir}"/> + <copy file="HowInstall.txt" todir="${bin-pack.tmpdir}"/> + + <!--Configuration templates--> + <copy todir="${bin-pack.conf-template}"> <fileset basedir="src/NHibernate.Config.Templates"> <include name="*"/> </fileset> </copy> - </target> - - <target name="binaries-zip" depends="init binaries copy-release-notes copy-xml-schemas copy-config-templates"> - <zip zipfile="${build.dir}/bin/NHibernate-${project.version}-bin.zip"> - <fileset basedir="${build.dir}"> - <include name="releasenotes.txt" /> + + <!--Minimal Required Bins--> + <copy todir="${bin-pack.required}"> + <fileset basedir="src/NHibernate"> <include name="*.xsd" /> - <include name="bin/**" /> - - <exclude name="**/*.hbm.xml" /> - <exclude name="**/*.commandlog" /> - <exclude name="**/MyTest*" /> </fileset> - </zip> + </copy> + <copy todir="${bin-pack.required}"> + <fileset basedir="${bin.dir}"> + <include name="Antlr3.Runtime.dll" /> + <include name="Iesi.Collections.???" /> + <include name="log4net*" /> + <include name="NHibernate.???" /> + </fileset> + </copy> + <!--Required Bins for lazy loading NHibernate.ByteCode.Castle.dll--> + <copy file="Choose_Only_One.txt" todir="${bin-pack.requiredlazy}"/> + <copy todir="${bin-pack.requiredlazy}/Castle"> + <fileset basedir="${bin.dir}"> + <include name="Castle.*" /> + <include name="NHibernate.ByteCode.Castle.???" /> + </fileset> + </copy> + <copy todir="${bin-pack.requiredlazy}/LinFu"> + <fileset basedir="${bin.dir}"> + <include name="LinFu.*" /> + <include name="NHibernate.ByteCode.LinFu.???" /> + </fileset> + </copy> + <copy todir="${bin-pack.requiredlazy}/Spring"> + <fileset basedir="${bin.dir}"> + <include name="antlr.runtime.dll" /> + <include name="Common.Logging.dll" /> + <include name="Spring.*" /> + <include name="NHibernate.ByteCode.Spring.???" /> + </fileset> + </copy> + <!-- Tests --> + <copy file="${bin.dir}/TestEnbeddedConfig.cfg.xml" todir="${bin-pack.tests}"/> + <copy file="${bin.dir}/ABC.hbm.xml" todir="${bin-pack.tests}"/> + <copy todir="${bin-pack.tests}"> + <fileset basedir="${bin.dir}"> + <include name="nunit*" /> + <include name="NHibernate.Domain*" /> + <include name="NHibernate.Test*" /> + </fileset> + </copy> </target> + + <target name="package" depends="init binaries reference-zip sources-zip binaries-zip" + description="Creates files for the General Available Release on SourceForge"> - <target name="prepare-installer-files" depends="init sources-zip copy-release-notes" /> - - <target name="installer" depends="init binaries doc prepare-installer-files"> - <nant buildfile="src/NHibernate.Setup/NHibernate.Setup.build" target="msi" /> + <echo message="Created a '${project.config}' package in ${build.dir}" /> </target> - <target name="package" depends="init binaries manual sources-zip binaries-zip" - description="Creates files for the File Release System on SourceForge"> + <target name="release" depends="init binaries binaries-zip sources-zip" + description="Creates files for the partial (Alpha-Beta-Candidate) Release on SourceForge"> - <property name="dist.output.dir" value="${project::get-base-directory()}/build/" /> - <move todir="${dist.output.dir}" flatten="true" overwrite="true"> - <fileset basedir="${build.dir}"> - <include name="*.msi" /> - <include name="src/NHibernate-${project.version}-src.zip" /> - <include name="bin/NHibernate-${project.version}-bin.zip" /> - </fileset> - </move> - - <echo message="Created a '${project.config}' package in ${dist.output.dir}" /> - + <echo message="Created a '${project.config}' package in ${build.dir}" /> </target> - <target name="fxcop" depends="init" > - <exec program="${fxcop.exe}" - commandline="/f:${build.dir}\bin\nhibernate.dll /o:${build.dir}\bin\fxcop-results.xml" - failonerror="false"/> - </target> - - <target name="simian" depends="init" > - <exec program="${simian.exe}" verbose="true" - commandline="-recurse=src/*.cs -formatter=xml:${build.dir}\bin\simian-results.xml -failOnDuplication-" - failonerror="false"/> - </target> - <target name="visual-studio" depends="init" description="Modifies AssemblyInfo.cs files to work with Visual Studio"> <property name="visual-studio" value="true" /> <nant target="generate-assemblyinfo"> Modified: branches/2.1.x/nhibernate/doc/documentation.build =================================================================== --- branches/2.1.x/nhibernate/doc/documentation.build 2009-07-15 17:34:19 UTC (rev 4637) +++ branches/2.1.x/nhibernate/doc/documentation.build 2009-07-15 18:47:57 UTC (rev 4638) @@ -32,6 +32,14 @@ </properties> </nant> </target> + + <target name="manual-zip" depends="manual"> + <zip zipfile="${build.dir}/NHibernate-${project.version}-reference.zip"> + <fileset basedir="${doc.out.dir}"> + <include name="**/*" /> + </fileset> + </zip> + </target> <target name="apidocbuilder-project" depends="init"> <copy file="NHibernate.shfbproj.template" tofile="NHibernate.shfbproj" overwrite="true"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-15 17:34:24
|
Revision: 4637 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4637&view=rev Author: fabiomaulo Date: 2009-07-15 17:34:19 +0000 (Wed, 15 Jul 2009) Log Message: ----------- Merge r4636 Added Paths: ----------- trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml Removed Paths: ------------- trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml.tmpl trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml.tmpl trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml.tmpl trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml.tmpl trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml.tmpl trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml.tmpl Added: trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml (rev 0) +++ trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml 2009-07-15 17:34:19 UTC (rev 4637) @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!-- +To work with FireBird you must add the assembly binding for FirebirdClient ADO.NET 2.0 DataProvider +to your App.config. +Example: +<runtime> +<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> + <qualifyAssembly partialName="FirebirdSql.Data.FirebirdClient" fullName="FirebirdSql.Data.FirebirdClient, Version=2.0.1.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c" /> +</assemblyBinding> +</runtime> +--> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.FirebirdClientDriver</property> + <property name="connection.connection_string"> + Server=localhost; + Database=C:\nhibernate.fdb; + User=SYSDBA;Password=masterkey + </property> + <property name="show_sql">false</property> + <property name="dialect">NHibernate.Dialect.FirebirdDialect</property> + <property name="command_timeout">60</property> + <property name="query.substitutions">true 1, false 0, yes 1, no 0</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> Deleted: trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml.tmpl =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) +++ trunk/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml.tmpl 2009-07-15 17:34:19 UTC (rev 4637) @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!-- -To work with FireBird you must add the assembly binding for FirebirdClient ADO.NET 2.0 DataProvider -to your App.config. -Example: -<runtime> -<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> - <qualifyAssembly partialName="FirebirdSql.Data.FirebirdClient" fullName="FirebirdSql.Data.FirebirdClient, Version=2.0.1.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c" /> -</assemblyBinding> -</runtime> ---> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.FirebirdClientDriver</property> - <property name="connection.connection_string"> - Server=localhost; - Database=C:\nhibernate.fdb; - User=SYSDBA;Password=masterkey - </property> - <property name="show_sql">false</property> - <property name="dialect">NHibernate.Dialect.FirebirdDialect</property> - <property name="command_timeout">60</property> - <property name="query.substitutions">true 1, false 0, yes 1, no 0</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> Added: trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml (rev 0) +++ trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml 2009-07-15 17:34:19 UTC (rev 4637) @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<!-- This is the System.Data.dll provider for SQL Server --> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> + <property name="connection.connection_string"> + Server=(local);initial catalog=nhibernate;Integrated Security=SSPI + </property> + <property name="adonet.batch_size">10</property> + <property name="show_sql">false</property> + <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property> + <property name="use_outer_join">true</property> + <property name="command_timeout">60</property> + <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> \ No newline at end of file Deleted: trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml.tmpl =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) +++ trunk/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml.tmpl 2009-07-15 17:34:19 UTC (rev 4637) @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<!-- This is the System.Data.dll provider for SQL Server --> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> - <property name="connection.connection_string"> - Server=(local);initial catalog=nhibernate;Integrated Security=SSPI - </property> - <property name="adonet.batch_size">10</property> - <property name="show_sql">false</property> - <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property> - <property name="use_outer_join">true</property> - <property name="command_timeout">60</property> - <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml (rev 0) +++ trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml 2009-07-15 17:34:19 UTC (rev 4637) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<!-- This is the ByteFX.Data.dll provider for MySql --> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property> + <property name="connection.connection_string"> + Database=test;Data Source=someip;User Id=blah;Password=blah + </property> + <property name="dialect">NHibernate.Dialect.MySQLDialect</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> \ No newline at end of file Deleted: trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml.tmpl =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) +++ trunk/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml.tmpl 2009-07-15 17:34:19 UTC (rev 4637) @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<!-- This is the ByteFX.Data.dll provider for MySql --> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property> - <property name="connection.connection_string"> - Database=test;Data Source=someip;User Id=blah;Password=blah - </property> - <property name="dialect">NHibernate.Dialect.MySQLDialect</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml (rev 0) +++ trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml 2009-07-15 17:34:19 UTC (rev 4637) @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<!-- This is the System.Data.OracleClient.dll provider for Oracle from MS --> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property> + <property name="connection.connection_string"> + User ID=nhibernate;Password=nhibernate;Data Source=localhost + </property> + <property name="show_sql">false</property> + <property name="dialect">NHibernate.Dialect.OracleDialect</property> + <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> \ No newline at end of file Deleted: trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml.tmpl =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) +++ trunk/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml.tmpl 2009-07-15 17:34:19 UTC (rev 4637) @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<!-- This is the System.Data.OracleClient.dll provider for Oracle from MS --> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property> - <property name="connection.connection_string"> - User ID=nhibernate;Password=nhibernate;Data Source=localhost - </property> - <property name="show_sql">false</property> - <property name="dialect">NHibernate.Dialect.OracleDialect</property> - <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml (rev 0) +++ trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml 2009-07-15 17:34:19 UTC (rev 4637) @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.NpgsqlDriver</property> + <property name="connection.connection_string"> + Server=localhost;initial catalog=nhibernate;User ID=nhibernate;Password=nhibernate; + </property> + <property name="dialect">NHibernate.Dialect.PostgreSQLDialect</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> \ No newline at end of file Deleted: trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml.tmpl =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) +++ trunk/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml.tmpl 2009-07-15 17:34:19 UTC (rev 4637) @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.NpgsqlDriver</property> - <property name="connection.connection_string"> - Server=localhost;initial catalog=nhibernate;User ID=nhibernate;Password=nhibernate; - </property> - <property name="dialect">NHibernate.Dialect.PostgreSQLDialect</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> \ No newline at end of file Added: trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml (rev 0) +++ trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml 2009-07-15 17:34:19 UTC (rev 4637) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.SQLiteDriver</property> + <property name="connection.connection_string"> + Data Source=nhibernate.db;Version=3 + </property> + <property name="dialect">NHibernate.Dialect.SQLiteDialect</property> + <property name="query.substitutions">true=1;false=0</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> \ No newline at end of file Deleted: trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml.tmpl =================================================================== --- trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) +++ trunk/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml.tmpl 2009-07-15 17:34:19 UTC (rev 4637) @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.SQLiteDriver</property> - <property name="connection.connection_string"> - Data Source=nhibernate.db;Version=3 - </property> - <property name="dialect">NHibernate.Dialect.SQLiteDialect</property> - <property name="query.substitutions">true=1;false=0</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-15 17:33:04
|
Revision: 4636 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4636&view=rev Author: fabiomaulo Date: 2009-07-15 17:32:52 +0000 (Wed, 15 Jul 2009) Log Message: ----------- Minor (renamed files) Added Paths: ----------- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml Removed Paths: ------------- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml.tmpl branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml.tmpl branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml.tmpl branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml.tmpl branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml.tmpl branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml.tmpl Copied: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml (from rev 4633, branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml.tmpl) =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml (rev 0) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml 2009-07-15 17:32:52 UTC (rev 4636) @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!-- +To work with FireBird you must add the assembly binding for FirebirdClient ADO.NET 2.0 DataProvider +to your App.config. +Example: +<runtime> +<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> + <qualifyAssembly partialName="FirebirdSql.Data.FirebirdClient" fullName="FirebirdSql.Data.FirebirdClient, Version=2.0.1.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c" /> +</assemblyBinding> +</runtime> +--> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.FirebirdClientDriver</property> + <property name="connection.connection_string"> + Server=localhost; + Database=C:\nhibernate.fdb; + User=SYSDBA;Password=masterkey + </property> + <property name="show_sql">false</property> + <property name="dialect">NHibernate.Dialect.FirebirdDialect</property> + <property name="command_timeout">60</property> + <property name="query.substitutions">true 1, false 0, yes 1, no 0</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> Deleted: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml.tmpl =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml.tmpl 2009-07-15 13:43:22 UTC (rev 4635) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/FireBird.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!-- -To work with FireBird you must add the assembly binding for FirebirdClient ADO.NET 2.0 DataProvider -to your App.config. -Example: -<runtime> -<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> - <qualifyAssembly partialName="FirebirdSql.Data.FirebirdClient" fullName="FirebirdSql.Data.FirebirdClient, Version=2.0.1.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c" /> -</assemblyBinding> -</runtime> ---> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.FirebirdClientDriver</property> - <property name="connection.connection_string"> - Server=localhost; - Database=C:\nhibernate.fdb; - User=SYSDBA;Password=masterkey - </property> - <property name="show_sql">false</property> - <property name="dialect">NHibernate.Dialect.FirebirdDialect</property> - <property name="command_timeout">60</property> - <property name="query.substitutions">true 1, false 0, yes 1, no 0</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> Copied: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml (from rev 4633, branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml.tmpl) =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml (rev 0) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml 2009-07-15 17:32:52 UTC (rev 4636) @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<!-- This is the System.Data.dll provider for SQL Server --> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> + <property name="connection.connection_string"> + Server=(local);initial catalog=nhibernate;Integrated Security=SSPI + </property> + <property name="adonet.batch_size">10</property> + <property name="show_sql">false</property> + <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property> + <property name="use_outer_join">true</property> + <property name="command_timeout">60</property> + <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> \ No newline at end of file Deleted: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml.tmpl =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml.tmpl 2009-07-15 13:43:22 UTC (rev 4635) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MSSQL.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<!-- This is the System.Data.dll provider for SQL Server --> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.SqlClientDriver</property> - <property name="connection.connection_string"> - Server=(local);initial catalog=nhibernate;Integrated Security=SSPI - </property> - <property name="adonet.batch_size">10</property> - <property name="show_sql">false</property> - <property name="dialect">NHibernate.Dialect.MsSql2000Dialect</property> - <property name="use_outer_join">true</property> - <property name="command_timeout">60</property> - <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> \ No newline at end of file Copied: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml (from rev 4633, branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml.tmpl) =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml (rev 0) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml 2009-07-15 17:32:52 UTC (rev 4636) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<!-- This is the ByteFX.Data.dll provider for MySql --> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property> + <property name="connection.connection_string"> + Database=test;Data Source=someip;User Id=blah;Password=blah + </property> + <property name="dialect">NHibernate.Dialect.MySQLDialect</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> \ No newline at end of file Deleted: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml.tmpl =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml.tmpl 2009-07-15 13:43:22 UTC (rev 4635) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/MySql.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<!-- This is the ByteFX.Data.dll provider for MySql --> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property> - <property name="connection.connection_string"> - Database=test;Data Source=someip;User Id=blah;Password=blah - </property> - <property name="dialect">NHibernate.Dialect.MySQLDialect</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> \ No newline at end of file Copied: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml (from rev 4633, branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml.tmpl) =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml (rev 0) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml 2009-07-15 17:32:52 UTC (rev 4636) @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<!-- This is the System.Data.OracleClient.dll provider for Oracle from MS --> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property> + <property name="connection.connection_string"> + User ID=nhibernate;Password=nhibernate;Data Source=localhost + </property> + <property name="show_sql">false</property> + <property name="dialect">NHibernate.Dialect.OracleDialect</property> + <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> \ No newline at end of file Deleted: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml.tmpl =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml.tmpl 2009-07-15 13:43:22 UTC (rev 4635) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/Oracle.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<!-- This is the System.Data.OracleClient.dll provider for Oracle from MS --> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property> - <property name="connection.connection_string"> - User ID=nhibernate;Password=nhibernate;Data Source=localhost - </property> - <property name="show_sql">false</property> - <property name="dialect">NHibernate.Dialect.OracleDialect</property> - <property name="query.substitutions">true 1, false 0, yes 'Y', no 'N'</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> \ No newline at end of file Copied: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml (from rev 4633, branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml.tmpl) =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml (rev 0) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml 2009-07-15 17:32:52 UTC (rev 4636) @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.NpgsqlDriver</property> + <property name="connection.connection_string"> + Server=localhost;initial catalog=nhibernate;User ID=nhibernate;Password=nhibernate; + </property> + <property name="dialect">NHibernate.Dialect.PostgreSQLDialect</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> \ No newline at end of file Deleted: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml.tmpl =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml.tmpl 2009-07-15 13:43:22 UTC (rev 4635) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/PostgreSQL.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.NpgsqlDriver</property> - <property name="connection.connection_string"> - Server=localhost;initial catalog=nhibernate;User ID=nhibernate;Password=nhibernate; - </property> - <property name="dialect">NHibernate.Dialect.PostgreSQLDialect</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> \ No newline at end of file Copied: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml (from rev 4633, branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml.tmpl) =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml (rev 0) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml 2009-07-15 17:32:52 UTC (rev 4636) @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This template was written to work with NHibernate.Test. +Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it +for your own use before compile tests in VisualStudio. +--> +<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > + <session-factory name="NHibernate.Test"> + <property name="connection.driver_class">NHibernate.Driver.SQLiteDriver</property> + <property name="connection.connection_string"> + Data Source=nhibernate.db;Version=3 + </property> + <property name="dialect">NHibernate.Dialect.SQLiteDialect</property> + <property name="query.substitutions">true=1;false=0</property> + <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> + </session-factory> +</hibernate-configuration> \ No newline at end of file Deleted: branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml.tmpl =================================================================== --- branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml.tmpl 2009-07-15 13:43:22 UTC (rev 4635) +++ branches/2.1.x/nhibernate/src/NHibernate.Config.Templates/SQLite.cfg.xml.tmpl 2009-07-15 17:32:52 UTC (rev 4636) @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- -This template was written to work with NHibernate.Test. -Copy the template to your NHibernate.Test project folder and rename it in hibernate.cfg.xml and change it -for your own use before compile tests in VisualStudio. ---> -<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2" > - <session-factory name="NHibernate.Test"> - <property name="connection.driver_class">NHibernate.Driver.SQLiteDriver</property> - <property name="connection.connection_string"> - Data Source=nhibernate.db;Version=3 - </property> - <property name="dialect">NHibernate.Dialect.SQLiteDialect</property> - <property name="query.substitutions">true=1;false=0</property> - <property name="proxyfactory.factory_class">NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu</property> - </session-factory> -</hibernate-configuration> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-15 13:43:27
|
Revision: 4635 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4635&view=rev Author: fabiomaulo Date: 2009-07-15 13:43:22 +0000 (Wed, 15 Jul 2009) Log Message: ----------- Minor (examples to create API doc) Modified Paths: -------------- trunk/nhibernate/sample build commands.txt Modified: trunk/nhibernate/sample build commands.txt =================================================================== --- trunk/nhibernate/sample build commands.txt 2009-07-15 13:42:29 UTC (rev 4634) +++ trunk/nhibernate/sample build commands.txt 2009-07-15 13:43:22 UTC (rev 4635) @@ -31,5 +31,9 @@ ## Build Only The Core NAnt -D:with.core.only=true +## Build API documentation (you should have Sandcastle installed) +Nant api +## Build reference manual +Nant manual This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-15 13:42:31
|
Revision: 4634 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4634&view=rev Author: fabiomaulo Date: 2009-07-15 13:42:29 +0000 (Wed, 15 Jul 2009) Log Message: ----------- Minor Modified Paths: -------------- branches/2.1.x/nhibernate/sample build commands.txt Modified: branches/2.1.x/nhibernate/sample build commands.txt =================================================================== --- branches/2.1.x/nhibernate/sample build commands.txt 2009-07-14 22:56:24 UTC (rev 4633) +++ branches/2.1.x/nhibernate/sample build commands.txt 2009-07-15 13:42:29 UTC (rev 4634) @@ -31,5 +31,10 @@ ## Build Only The Core NAnt -D:with.core.only=true +## Build API documentation (you should have Sandcastle installed) +Nant api +## Build reference manual +Nant manual + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-14 22:56:27
|
Revision: 4633 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4633&view=rev Author: fabiomaulo Date: 2009-07-14 22:56:24 +0000 (Tue, 14 Jul 2009) Log Message: ----------- Bye NDoc, welcome SandCastle Removed Paths: ------------- trunk/nhibernate/Tools/NDoc/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-14 22:53:16
|
Revision: 4632 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4632&view=rev Author: fabiomaulo Date: 2009-07-14 22:53:11 +0000 (Tue, 14 Jul 2009) Log Message: ----------- Merge r4631 Modified Paths: -------------- trunk/nhibernate/default.build trunk/nhibernate/doc/documentation.build trunk/nhibernate/doc/reference/reference.build Added Paths: ----------- trunk/nhibernate/doc/NHibernate.shfbproj.template Modified: trunk/nhibernate/default.build =================================================================== --- trunk/nhibernate/default.build 2009-07-14 22:46:00 UTC (rev 4631) +++ trunk/nhibernate/default.build 2009-07-14 22:53:11 UTC (rev 4632) @@ -156,6 +156,11 @@ description="Builds the Help Documentation"> <nant buildfile="doc/documentation.build" target="manual" /> </target> + + <target name="api" depends="init binaries" + description="Builds the API Documentation"> + <nant buildfile="doc/documentation.build" target="api" /> + </target> <target name="build-all-frameworks" depends="init"> <!-- Save the current framework --> @@ -299,7 +304,7 @@ <nant buildfile="src/NHibernate.Setup/NHibernate.Setup.build" target="msi" /> </target> - <target name="package" depends="init set-release-project-configuration test binaries manual sources-zip binaries-zip" + <target name="package" depends="init binaries manual sources-zip binaries-zip" description="Creates files for the File Release System on SourceForge"> <property name="dist.output.dir" value="${project::get-base-directory()}/build/" /> Added: trunk/nhibernate/doc/NHibernate.shfbproj.template =================================================================== --- trunk/nhibernate/doc/NHibernate.shfbproj.template (rev 0) +++ trunk/nhibernate/doc/NHibernate.shfbproj.template 2009-07-14 22:53:11 UTC (rev 4632) @@ -0,0 +1,42 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> + <PropertyGroup> + <!-- The configuration and platform will be used to determine which + assemblies to include from solution and project documentation + sources --> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{91f431cd-23fb-4ed4-a690-0344073c65f0}</ProjectGuid> + <SHFBSchemaVersion>1.8.0.0</SHFBSchemaVersion> + <!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual + Studio adds them anyway --> + <AssemblyName>Documentation</AssemblyName> + <RootNamespace>Documentation</RootNamespace> + <Name>Documentation</Name> + <!-- SHFB properties --> + <OutputPath>${doc.out.dir}</OutputPath> + <HtmlHelpName>NHibernateAPI</HtmlHelpName> + <HelpFileFormat>HtmlHelp1x</HelpFileFormat> + <CopyrightText>NHibernate</CopyrightText> + <CopyrightHref>www.nhforge.org</CopyrightHref> + <FeedbackEMailAddress>http://groups.google.com/group/nhibernate-development</FeedbackEMailAddress> + <FeedbackEMailLinkText>nhibernate team</FeedbackEMailLinkText> + <HelpTitle>NHibernate API Reference</HelpTitle> + <IndentHtml>False</IndentHtml> + <HelpFileVersion>${project.version.numeric}</HelpFileVersion> + <DocumentationSources> + <DocumentationSource sourceFile="${bin.dir}/Iesi.Collections.dll" /> + <DocumentationSource sourceFile="${bin.dir}/Iesi.Collections.xml" /> + <DocumentationSource sourceFile="${bin.dir}/NHibernate.dll" /> + <DocumentationSource sourceFile="${bin.dir}/Nhibernate.xml" /> + </DocumentationSources> + </PropertyGroup> + <!-- There are no properties for these two groups but they need to appear in + order for Visual Studio to perform the build. --> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + </PropertyGroup> + <!-- Import the SHFB build targets --> + <Import Project="$(SHFBROOT)\SandcastleHelpFileBuilder.targets" /> +</Project> Modified: trunk/nhibernate/doc/documentation.build =================================================================== --- trunk/nhibernate/doc/documentation.build 2009-07-14 22:46:00 UTC (rev 4631) +++ trunk/nhibernate/doc/documentation.build 2009-07-14 22:53:11 UTC (rev 4632) @@ -7,7 +7,6 @@ > <property name="root.dir" value=".." /> - <include buildfile="${root.dir}/build-common/common.xml"/> <include buildfile="${root.dir}/build-common/common-project.xml" /> <target name="init" depends="common.init"> @@ -22,7 +21,7 @@ <target name="clean" depends="init"> <nant target="clean" buildfile="reference/reference.build" /> <delete dir="${doc.out.dir}" /> - <delete file="NHibernate.ndoc" /> + <delete file="NHibernate.shfbproj" /> </target> <target name="manual" depends="init"> @@ -34,15 +33,15 @@ </nant> </target> - <target name="ndoc-project" depends="init"> - <copy file="NHibernate.ndoc.in" tofile="NHibernate.ndoc" overwrite="true"> + <target name="apidocbuilder-project" depends="init"> + <copy file="NHibernate.shfbproj.template" tofile="NHibernate.shfbproj" overwrite="true"> <filterchain> <expandproperties /> </filterchain> </copy> </target> - <target name="api" depends="init common.find-ndoc ndoc-project" description="Generates the API documentation (in MSDN style and VS.NET 2003 if available)"> + <target name="api" depends="init apidocbuilder-project" description="Generates the API documentation (in MSDN style and VS.NET 2005 if available)"> <uptodate property="api.uptodate"> <sourcefiles> <include name="${bin.dir}/*.dll" /> @@ -57,14 +56,10 @@ <echo if="${api.uptodate}">API documentation is up to date, skipping generation step.</echo> <if test="${not api.uptodate}"> - <exec program="${ndoc-console}"> - <arg line="-documenter=MSDN-Help2" /> - <arg line="-project=NHibernate.ndoc" /> + <property name="apidocbuilder.exe" value="${directory::get-parent-directory(environment::get-folder-path('System'))}\Microsoft.NET\Framework\v3.5\MSBuild.exe" /> + <exec program="${apidocbuilder.exe}"> + <arg line="NHibernate.shfbproj" /> </exec> - <exec program="${ndoc-console}"> - <arg line="-documenter=MSDN-CHM" /> - <arg line="-project=NHibernate.ndoc" /> - </exec> </if> </target> Modified: trunk/nhibernate/doc/reference/reference.build =================================================================== --- trunk/nhibernate/doc/reference/reference.build 2009-07-14 22:46:00 UTC (rev 4631) +++ trunk/nhibernate/doc/reference/reference.build 2009-07-14 22:53:11 UTC (rev 4632) @@ -12,7 +12,7 @@ <property name="lang" value="en" /> <property name="output.dir" value="${build.dir}/doc" /> - <property name="output.html.basename" value="NHibernate.Documentation" /> + <property name="output.html.basename" value="NHibernate.Reference" /> <property name="output.help2.dir" value="${output.dir}/help2" /> <property name="build.html.dir" value="${output.dir}" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-14 22:46:03
|
Revision: 4631 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4631&view=rev Author: fabiomaulo Date: 2009-07-14 22:46:00 +0000 (Tue, 14 Jul 2009) Log Message: ----------- - Actualization of some build tasks for documentation - changed task about NDoc to use SandCastle Modified Paths: -------------- branches/2.1.x/nhibernate/default.build branches/2.1.x/nhibernate/doc/documentation.build branches/2.1.x/nhibernate/doc/reference/reference.build Added Paths: ----------- branches/2.1.x/nhibernate/doc/NHibernate.shfbproj.template Property Changed: ---------------- branches/2.1.x/nhibernate/doc/ Modified: branches/2.1.x/nhibernate/default.build =================================================================== --- branches/2.1.x/nhibernate/default.build 2009-07-14 19:00:35 UTC (rev 4630) +++ branches/2.1.x/nhibernate/default.build 2009-07-14 22:46:00 UTC (rev 4631) @@ -154,6 +154,11 @@ description="Builds the Help Documentation"> <nant buildfile="doc/documentation.build" target="manual" /> </target> + + <target name="api" depends="init binaries" + description="Builds the API Documentation"> + <nant buildfile="doc/documentation.build" target="api" /> + </target> <target name="build-all-frameworks" depends="init"> <!-- Save the current framework --> @@ -297,7 +302,7 @@ <nant buildfile="src/NHibernate.Setup/NHibernate.Setup.build" target="msi" /> </target> - <target name="package" depends="init set-release-project-configuration test binaries manual sources-zip binaries-zip" + <target name="package" depends="init binaries manual sources-zip binaries-zip" description="Creates files for the File Release System on SourceForge"> <property name="dist.output.dir" value="${project::get-base-directory()}/build/" /> Property changes on: branches/2.1.x/nhibernate/doc ___________________________________________________________________ Modified: svn:ignore - build NHibernate.ndoc + NHibernate.ndoc NHibernate.shfbproj build Added: branches/2.1.x/nhibernate/doc/NHibernate.shfbproj.template =================================================================== --- branches/2.1.x/nhibernate/doc/NHibernate.shfbproj.template (rev 0) +++ branches/2.1.x/nhibernate/doc/NHibernate.shfbproj.template 2009-07-14 22:46:00 UTC (rev 4631) @@ -0,0 +1,42 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> + <PropertyGroup> + <!-- The configuration and platform will be used to determine which + assemblies to include from solution and project documentation + sources --> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{91f431cd-23fb-4ed4-a690-0344073c65f0}</ProjectGuid> + <SHFBSchemaVersion>1.8.0.0</SHFBSchemaVersion> + <!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual + Studio adds them anyway --> + <AssemblyName>Documentation</AssemblyName> + <RootNamespace>Documentation</RootNamespace> + <Name>Documentation</Name> + <!-- SHFB properties --> + <OutputPath>${doc.out.dir}</OutputPath> + <HtmlHelpName>NHibernateAPI</HtmlHelpName> + <HelpFileFormat>HtmlHelp1x</HelpFileFormat> + <CopyrightText>NHibernate</CopyrightText> + <CopyrightHref>www.nhforge.org</CopyrightHref> + <FeedbackEMailAddress>http://groups.google.com/group/nhibernate-development</FeedbackEMailAddress> + <FeedbackEMailLinkText>nhibernate team</FeedbackEMailLinkText> + <HelpTitle>NHibernate API Reference</HelpTitle> + <IndentHtml>False</IndentHtml> + <HelpFileVersion>${project.version.numeric}</HelpFileVersion> + <DocumentationSources> + <DocumentationSource sourceFile="${bin.dir}/Iesi.Collections.dll" /> + <DocumentationSource sourceFile="${bin.dir}/Iesi.Collections.xml" /> + <DocumentationSource sourceFile="${bin.dir}/NHibernate.dll" /> + <DocumentationSource sourceFile="${bin.dir}/Nhibernate.xml" /> + </DocumentationSources> + </PropertyGroup> + <!-- There are no properties for these two groups but they need to appear in + order for Visual Studio to perform the build. --> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + </PropertyGroup> + <!-- Import the SHFB build targets --> + <Import Project="$(SHFBROOT)\SandcastleHelpFileBuilder.targets" /> +</Project> \ No newline at end of file Modified: branches/2.1.x/nhibernate/doc/documentation.build =================================================================== --- branches/2.1.x/nhibernate/doc/documentation.build 2009-07-14 19:00:35 UTC (rev 4630) +++ branches/2.1.x/nhibernate/doc/documentation.build 2009-07-14 22:46:00 UTC (rev 4631) @@ -21,7 +21,7 @@ <target name="clean" depends="init"> <nant target="clean" buildfile="reference/reference.build" /> <delete dir="${doc.out.dir}" /> - <delete file="NHibernate.ndoc" /> + <delete file="NHibernate.shfbproj" /> </target> <target name="manual" depends="init"> @@ -33,15 +33,15 @@ </nant> </target> - <target name="ndoc-project" depends="init"> - <copy file="NHibernate.ndoc.in" tofile="NHibernate.ndoc" overwrite="true"> + <target name="apidocbuilder-project" depends="init"> + <copy file="NHibernate.shfbproj.template" tofile="NHibernate.shfbproj" overwrite="true"> <filterchain> <expandproperties /> </filterchain> </copy> </target> - <target name="api" depends="init ndoc-project" description="Generates the API documentation (in MSDN style and VS.NET 2003 if available)"> + <target name="api" depends="init apidocbuilder-project" description="Generates the API documentation (in MSDN style and VS.NET 2005 if available)"> <uptodate property="api.uptodate"> <sourcefiles> <include name="${bin.dir}/*.dll" /> @@ -56,15 +56,10 @@ <echo if="${api.uptodate}">API documentation is up to date, skipping generation step.</echo> <if test="${not api.uptodate}"> - <property name="ndocconsole.exe" value="C:\net\NDoc2Alpha\NDocConsole.exe" /> - <exec program="${ndocconsole.exe}"> - <arg line="-documenter=MSDN-Help2" /> - <arg line="-project=NHibernate.ndoc" /> + <property name="apidocbuilder.exe" value="${directory::get-parent-directory(environment::get-folder-path('System'))}\Microsoft.NET\Framework\v3.5\MSBuild.exe" /> + <exec program="${apidocbuilder.exe}"> + <arg line="NHibernate.shfbproj" /> </exec> - <exec program="${ndocconsole.exe}"> - <arg line="-documenter=MSDN-CHM" /> - <arg line="-project=NHibernate.ndoc" /> - </exec> </if> </target> Modified: branches/2.1.x/nhibernate/doc/reference/reference.build =================================================================== --- branches/2.1.x/nhibernate/doc/reference/reference.build 2009-07-14 19:00:35 UTC (rev 4630) +++ branches/2.1.x/nhibernate/doc/reference/reference.build 2009-07-14 22:46:00 UTC (rev 4631) @@ -12,7 +12,7 @@ <property name="lang" value="en" /> <property name="output.dir" value="${build.dir}/doc" /> - <property name="output.html.basename" value="NHibernate.Documentation" /> + <property name="output.html.basename" value="NHibernate.Reference" /> <property name="output.help2.dir" value="${output.dir}/help2" /> <property name="build.html.dir" value="${output.dir}" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-14 19:00:42
|
Revision: 4630 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4630&view=rev Author: fabiomaulo Date: 2009-07-14 19:00:35 +0000 (Tue, 14 Jul 2009) Log Message: ----------- Merge r4629 Modified Paths: -------------- trunk/nhibernate/doc/reference/modules/basic_mapping.xml Modified: trunk/nhibernate/doc/reference/modules/basic_mapping.xml =================================================================== --- trunk/nhibernate/doc/reference/modules/basic_mapping.xml 2009-07-14 18:59:32 UTC (rev 4629) +++ trunk/nhibernate/doc/reference/modules/basic_mapping.xml 2009-07-14 19:00:35 UTC (rev 4630) @@ -2499,8 +2499,25 @@ The <literal>IUserType</literal> can now retrieve the value for the parameter named <literal>default</literal> from the <literal>IDictionary</literal> object passed to it. </para> - <para> + If you use a certain <literal>UserType</literal> very often, it may be useful to define a + shorter name for it. You can do this using the <literal><typedef></literal> element. + Typedefs assign a name to a custom type, and may also contain a list of default + parameter values if the type is parameterized. + </para> + + <programlisting><![CDATA[<typedef class="MyCompany.UserTypes.DefaultValueIntegerType" name="default_zero"> + <param name="default">0</param> +</typedef>]]></programlisting> + + <programlisting><![CDATA[<property name="priority" type="default_zero"/>]]></programlisting> + + <para> + It is also possible to override the parameters supplied in a typedef on a case-by-case basis + by using type parameters on the property mapping. + </para> + + <para> Even though NHibernate's rich range of built-in types and support for components means you will very rarely <emphasis>need</emphasis> to use a custom type, it is nevertheless considered good form to use custom types for (non-entity) classes that occur frequently This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-14 18:59:33
|
Revision: 4629 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4629&view=rev Author: fabiomaulo Date: 2009-07-14 18:59:32 +0000 (Tue, 14 Jul 2009) Log Message: ----------- Docs typedef Modified Paths: -------------- branches/2.1.x/nhibernate/doc/reference/modules/basic_mapping.xml Modified: branches/2.1.x/nhibernate/doc/reference/modules/basic_mapping.xml =================================================================== --- branches/2.1.x/nhibernate/doc/reference/modules/basic_mapping.xml 2009-07-14 18:51:14 UTC (rev 4628) +++ branches/2.1.x/nhibernate/doc/reference/modules/basic_mapping.xml 2009-07-14 18:59:32 UTC (rev 4629) @@ -2499,8 +2499,25 @@ The <literal>IUserType</literal> can now retrieve the value for the parameter named <literal>default</literal> from the <literal>IDictionary</literal> object passed to it. </para> - <para> + If you use a certain <literal>UserType</literal> very often, it may be useful to define a + shorter name for it. You can do this using the <literal><typedef></literal> element. + Typedefs assign a name to a custom type, and may also contain a list of default + parameter values if the type is parameterized. + </para> + + <programlisting><![CDATA[<typedef class="MyCompany.UserTypes.DefaultValueIntegerType" name="default_zero"> + <param name="default">0</param> +</typedef>]]></programlisting> + + <programlisting><![CDATA[<property name="priority" type="default_zero"/>]]></programlisting> + + <para> + It is also possible to override the parameters supplied in a typedef on a case-by-case basis + by using type parameters on the property mapping. + </para> + + <para> Even though NHibernate's rich range of built-in types and support for components means you will very rarely <emphasis>need</emphasis> to use a custom type, it is nevertheless considered good form to use custom types for (non-entity) classes that occur frequently This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-14 18:51:17
|
Revision: 4628 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4628&view=rev Author: fabiomaulo Date: 2009-07-14 18:51:14 +0000 (Tue, 14 Jul 2009) Log Message: ----------- Merge r4627 Modified Paths: -------------- trunk/nhibernate/doc/reference/modules/manipulating_data.xml Modified: trunk/nhibernate/doc/reference/modules/manipulating_data.xml =================================================================== --- trunk/nhibernate/doc/reference/modules/manipulating_data.xml 2009-07-14 18:49:51 UTC (rev 4627) +++ trunk/nhibernate/doc/reference/modules/manipulating_data.xml 2009-07-14 18:51:14 UTC (rev 4628) @@ -915,6 +915,9 @@ For exceptions thrown by the data provider while interacting with the database, NHibernate will wrap the error in an instance of <literal>ADOException</literal>. The underlying exception is accessible by calling <literal>ADOException.InnerException</literal>. + NHibernate converts the DbException into an appropriate ADOException subclass using the ISQLExceptionConverter attached to the SessionFactory. + By default, the ISQLExceptionConverter is defined by the configured dialect; however, it is also possible to plug in a custom implementation + (see the api-docs for the ISQLExceptionConverter class for details). </para> <para> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <fab...@us...> - 2009-07-14 18:49:53
|
Revision: 4627 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4627&view=rev Author: fabiomaulo Date: 2009-07-14 18:49:51 +0000 (Tue, 14 Jul 2009) Log Message: ----------- Docs ISQLExceptionConverter Modified Paths: -------------- branches/2.1.x/nhibernate/doc/reference/modules/manipulating_data.xml Modified: branches/2.1.x/nhibernate/doc/reference/modules/manipulating_data.xml =================================================================== --- branches/2.1.x/nhibernate/doc/reference/modules/manipulating_data.xml 2009-07-14 18:37:08 UTC (rev 4626) +++ branches/2.1.x/nhibernate/doc/reference/modules/manipulating_data.xml 2009-07-14 18:49:51 UTC (rev 4627) @@ -915,6 +915,9 @@ For exceptions thrown by the data provider while interacting with the database, NHibernate will wrap the error in an instance of <literal>ADOException</literal>. The underlying exception is accessible by calling <literal>ADOException.InnerException</literal>. + NHibernate converts the DbException into an appropriate ADOException subclass using the ISQLExceptionConverter attached to the SessionFactory. + By default, the ISQLExceptionConverter is defined by the configured dialect; however, it is also possible to plug in a custom implementation + (see the api-docs for the ISQLExceptionConverter class for details). </para> <para> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |