Well,
I think to solve this issue I need some unit test. Can you please
provide a script of a significant part of your DB, so I can reproduce
the error ?
Actually the db2hbm test is done on MSSQL2005, so I want to understand
if it is a 2000 specific issue...


On 13 Mag, 17:30, MarianoB <[email protected]> wrote:
> Hello Felix,
>
> Thank you for the response.
> I've changed the configuration file to include a regex as you explain
> me.
>
>   <table-filter>
>     <include table="^TMAR_[a-zA-Z]+" />
>     <!-- Include all-->
>   </table-filter>
>
> <!--
>   <tables>
>   </tables>
> -->
>
> I had a problem with the float type then I add this line to the
> configuration file
> <sql-type dbtype="float" nhtype="Decimal"/>
>
> After running the db2hbm I receive this error:
>
> INFO  - Table TMAR_TipoTerminales: trying to infer id generator from
> schema
> ERROR - Fatal error
> System.NullReferenceException: Object reference not set to an instance
> of an object.
>    at NHibernate.Tool.Db2hbm.MappingGenerator.Generate(IStreamProvider
> streamProvider)
>    at NHibernate.Tool.Db2hbm.Console.Program.Main(String[] args)
>
> The TMAR_TipoTerminales table has an smallint type as Primary Key.
>
> I was looking for information on this error, but I couldn't find
> anything.
> The program runs on a Windows 2003 connecting to Sql Server 2000.
>
> Thanks, Mariano
>
> On 12 mayo, 03:48, FaticaLabs <[email protected]> wrote:
>
>
>
> > Hi Mariano,
> > Did you try to specify:
> > <table schema="dbo" catalog="MarFull" name="TMAR_.*" />
> > Please notice the dot, I suppose you want to hbm-ize all the table
> > beginning with TMAR_, the filter in hbm2net is matched as a Regex, so
> > you have to use the regex syntax.
> > Hope this help.
> > Felix
>
> > On 11 Mag, 23:37, MarianoB <[email protected]> wrote:
>
> > > I'm trying to create the hbm.xml file with Db2Hbm but the output files
> > > are not created.
> > > I don't see any error printed in the standard output.
>
> > > It's my first time with this tool, so I'm not sure if I'm doing
> > > something wrong with the configuration file.
>
> > >   <table-filter>
> > >     <!-- include catalog="MarFull" schema="dbo" table="TMAR_*" / -->
> > >     <!-- Include all -->
> > >     <!-- exclude catalog="MarFull" schema="dbo" table="zzzTMAR*"/ -->
> > >   </table-filter>
> > > <!--
> > >   <tables>
> > >     <table schema="dbo" catalog="MarFull" name="TMAR_*">
> > >     </table>
> > >   </tables>
> > > -->
> > >   <entity-exceptions>
> > >   </entity-exceptions>
>
> > >   <entities-namespace>MAR.Entities</entities-namespace>
> > >   <entities-assembly>MAR.Entities</entities-assembly>
>
> > > The rest of the file is similar to the default file included with the
> > > tool.
>
> > > All comments are welcomed!!!!
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "nhusers" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to 
> > > [email protected].
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/nhusers?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "nhusers" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/nhusers?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/nhusers?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to