Results 1 to 3 of 3

Thread: NHibernate Base Entity Class

  1. #1
    Join Date
    Jul 2009
    Posts
    1

    Default NHibernate Base Entity Class

    Hi all,

    I am currently evaluating Spring.Net has a platform and had question about how Spring.NET deal with Identity Field. In Sharp Architecture http://www.sharparchitecture.net/, there is a base class for all Entity that implements Equal() and GetHashCode(). I don't see this kind of class when browsing through Spring.NET's code base. I am just wondering how does Spring.NET deal with the equality question when dealing with NHibernate's <set> collection, especially in different NHibernate Session.

    Thanks

  2. #2
    Join Date
    Apr 2008
    Posts
    86

    Default

    It doesn't deal with that at all. There is a simple transaction manager wrapper and session factory wrapper only. You still have to implement that if you need it. We recycled sharp architecture's version of it.

  3. #3
    Join Date
    Jul 2009
    Posts
    1

    Default NHibernate Base Entity Class

    you can also create a new connection provider for nhibernate by inheriting from DriverConnectionProvider. I have done this myself with a class called RuntimeConnectionProvider. Then you just specify your extension in the NHibernate configuration

    Code:

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •