From: <fab...@us...> - 2009-02-05 04:57:37
|
Revision: 4048 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4048&view=rev Author: fabiomaulo Date: 2009-02-05 04:57:35 +0000 (Thu, 05 Feb 2009) Log Message: ----------- Class for future usage Modified Paths: -------------- trunk/nhibernate/src/NHibernate/NHibernate.csproj Added Paths: ----------- trunk/nhibernate/src/NHibernate/Id/Insert/NoCommentsInsert.cs Added: trunk/nhibernate/src/NHibernate/Id/Insert/NoCommentsInsert.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Id/Insert/NoCommentsInsert.cs (rev 0) +++ trunk/nhibernate/src/NHibernate/Id/Insert/NoCommentsInsert.cs 2009-02-05 04:57:35 UTC (rev 4048) @@ -0,0 +1,17 @@ +using NHibernate.Engine; +using NHibernate.SqlCommand; + +namespace NHibernate.Id.Insert +{ + /// <summary> + /// Disable comments on insert. + /// </summary> + public class NoCommentsInsert : IdentifierGeneratingInsert + { + public NoCommentsInsert(ISessionFactoryImplementor factory) : base(factory) {} + public override SqlInsertBuilder SetComment(string comment) + { + return this; + } + } +} \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate/NHibernate.csproj =================================================================== --- trunk/nhibernate/src/NHibernate/NHibernate.csproj 2009-02-05 04:47:03 UTC (rev 4047) +++ trunk/nhibernate/src/NHibernate/NHibernate.csproj 2009-02-05 04:57:35 UTC (rev 4048) @@ -464,6 +464,7 @@ <Compile Include="Exceptions\ReflectionBasedSqlStateExtracter.cs" /> <Compile Include="Exceptions\SqlStateExtracter.cs" /> <Compile Include="Exceptions\TemplatedViolatedConstraintNameExtracter.cs" /> + <Compile Include="Id\Insert\NoCommentsInsert.cs" /> <Compile Include="Id\NativeGuidGenerator.cs" /> <Compile Include="Id\SelectGenerator.cs" /> <Compile Include="IFutureValue.cs" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |