By specifying the name of the file, you can have them in different files.

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

/Oskar


2013/2/5 Felipe Oriani <[email protected]>:
> Hi Friends, I have two databases:
>
> App DB: Schema for my Application.
> Log DB: Schema for Loging some entities.
>
> To create the log schema, I add a PreInsert/PreUpdate Listeners on
> SessionFactory of the App DB and I decide to look for changes and write on
> the Log DB. It works fine if both schemas are on the same DB, but I need to
> separate it on two databases.
>
> My question is:  How can I have two SessionFactories instances on the same
> application? (in a single configuration file hibernate.cfg.xml, or is there
> something more appropriate to do this).
>
> Thank you.
>
>
>
> --
> ______________________________________
> Felipe B Oriani
> felipeoriani.com.br [email protected]
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/nhusers?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

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


Reply via email to