http://nhforge.org/doc/nh/en/index.html#configuration-namingstrategy

2009/4/17 simon <[email protected]>

>
> Yes it's like you said, the normal table are named like this:
>
> AppPrefix_TheEntityName
>
> and my temporary import tables are named:
>
> Import_TheEntityName
>
> The mappings refer to the table with AppPrefix_EntityName
>
> Do you any pointers with more info on this NamingStrategy stuff ?
>
> On Apr 16, 3:28 pm, Fabio Maulo <[email protected]> wrote:
> > If you have a convention as "the temporary table has the same name of the
> > master table with the postfix '_TMP'" you can do it easy.Two
> session-factory
> > configurations with two NamingStrategy.
> >
> > 2009/4/16 simon <[email protected]>
> >
> >
> >
> >
> >
> >
> >
> > > I'm working on an application that has a data publication mecanism
> > > that I designed & implemented. It allows one master instance of the
> > > app to feed data to many subscriber instances. This is implemented by
> > > loading the master's data into a set of temporary import tables that
> > > have the *same exact* schema on the subscriber. The merge process uses
> > > these import tables to do its work.
> >
> > > This whole publication thing is working fine. It is performed outside
> > > of NHibernate using ADO.NET for batch loading, sets of stored
> > > procedures for diff'ing & merging (they're autogenerated by a custom
> > > tool). Also, we only have an HTTP link available between master/
> > > subscriber to download the data; we can't connect directly to the
> > > master SQL server.
> >
> > > The problem I face is visually showing the diff to the user before
> > > they actually merge the new data. In the application, I'd like to have
> > > NHibernate load our business object directly from these temporary
> > > import tables.
> > > Can we do this ? Without having to maintain two sets of almost
> > > identical mapping files ?
> >
> > > In our last version, we were building up business objects using custom
> > > code that would load from these import tables. It would only load
> > > simple properties, not handling relations. This sucks big time from a
> > > coding/maintenance point of view.
> >
> > > Oh and we're still using NH 1.2.1GA.
> >
> > --
> > Fabio Maulo- Hide quoted text -
> >
> > - Show quoted text -
> >
>


-- 
Fabio Maulo

--~--~---------~--~----~------------~-------~--~----~
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