Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Why nHibernate [modified]

Why nHibernate [modified]

Scheduled Pinned Locked Moved The Lounge
questioncsharpc++javacareer
60 Posts 23 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    n podbielski
    wrote on last edited by
    #1

    I am looking for a job right now, so I looked over few offers, and i was surprised how many companies require employees to know that technology. And my question is why? I have read something about that now and before and I don't know what nHibernate have that don't have native for .net SQLinq? Is it better? Or this is because nHibernate work with Java to?

    In soviet Russia code debugs You!

    modified on Tuesday, April 5, 2011 12:55 PM

    L I N P E 10 Replies Last reply
    0
    • N n podbielski

      I am looking for a job right now, so I looked over few offers, and i was surprised how many companies require employees to know that technology. And my question is why? I have read something about that now and before and I don't know what nHibernate have that don't have native for .net SQLinq? Is it better? Or this is because nHibernate work with Java to?

      In soviet Russia code debugs You!

      modified on Tuesday, April 5, 2011 12:55 PM

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      n.podbielski wrote:

      to now that

      'know' Its a trickky one, a silent 'k'. As for the SW I have never heard of it though. :)

      "If climate has not "tipped" in over 4 billion years it's not going to tip now due to mankind." Richard S. Lindzen, Atmospheric Physicist, IPCC "It does not matter who you are, or how smart you are, or what title you have, or how many of you here are, and certainly not how many papers your side has published, if your prediction is wrong then your hypothesis is wrong. Period." Professor Richard Feynman

      P N S 3 Replies Last reply
      0
      • N n podbielski

        I am looking for a job right now, so I looked over few offers, and i was surprised how many companies require employees to know that technology. And my question is why? I have read something about that now and before and I don't know what nHibernate have that don't have native for .net SQLinq? Is it better? Or this is because nHibernate work with Java to?

        In soviet Russia code debugs You!

        modified on Tuesday, April 5, 2011 12:55 PM

        I Offline
        I Offline
        Ian Shlasko
        wrote on last edited by
        #3

        Heard the name before, but never used it... Looking at their website, though... Hmm, might have been useful when I was developing my system. I implemented all of that functionality myself, albeit more specialized.

        Proud to have finally moved to the A-Ark. Which one are you in?
        Author of the Guardians Saga (Sci-Fi/Fantasy novels)

        1 Reply Last reply
        0
        • L Lost User

          n.podbielski wrote:

          to now that

          'know' Its a trickky one, a silent 'k'. As for the SW I have never heard of it though. :)

          "If climate has not "tipped" in over 4 billion years it's not going to tip now due to mankind." Richard S. Lindzen, Atmospheric Physicist, IPCC "It does not matter who you are, or how smart you are, or what title you have, or how many of you here are, and certainly not how many papers your side has published, if your prediction is wrong then your hypothesis is wrong. Period." Professor Richard Feynman

          P Offline
          P Offline
          peterchen
          wrote on last edited by
          #4

          Never thought I'd say that, but... thank you.

          FILETIME to time_t
          | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

          A 1 Reply Last reply
          0
          • N n podbielski

            I am looking for a job right now, so I looked over few offers, and i was surprised how many companies require employees to know that technology. And my question is why? I have read something about that now and before and I don't know what nHibernate have that don't have native for .net SQLinq? Is it better? Or this is because nHibernate work with Java to?

            In soviet Russia code debugs You!

            modified on Tuesday, April 5, 2011 12:55 PM

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            My experience with it is somewhat mixed. One one side it can be a real pain to configure it and the crappy documentation does not make it any better. But once you got it working, it's really nice. Still, I prefer the oldfashioned way using stored procedures and setting up entities myself deep within the resource access layer. I just don't like it when some 'smart' framework tries to tell me what and what not to do.

            "I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011 ---
            I am endeavoring, Madam, to construct a mnemonic memory circuit using stone knives and bearskins - Mr. Spock 1935 and me 2011

            P F 2 Replies Last reply
            0
            • N n podbielski

              I am looking for a job right now, so I looked over few offers, and i was surprised how many companies require employees to know that technology. And my question is why? I have read something about that now and before and I don't know what nHibernate have that don't have native for .net SQLinq? Is it better? Or this is because nHibernate work with Java to?

              In soviet Russia code debugs You!

              modified on Tuesday, April 5, 2011 12:55 PM

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              n.podbielski wrote:

              because nHibernate work with Java to

              nHibernate is a port of Hibernate for Java, they are not interchangeable. nHiberate came before most of the other tools were available, or mature enough, so a lot of companies already have an investment in the tool.


              I know the language. I've read a book. - _Madmatt

              R 1 Reply Last reply
              0
              • N n podbielski

                I am looking for a job right now, so I looked over few offers, and i was surprised how many companies require employees to know that technology. And my question is why? I have read something about that now and before and I don't know what nHibernate have that don't have native for .net SQLinq? Is it better? Or this is because nHibernate work with Java to?

                In soviet Russia code debugs You!

                modified on Tuesday, April 5, 2011 12:55 PM

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                nHibernate is a port of Java's hibernate. It took on a life of it's own a while back, and in some ways it outstrips the Java version (or so I'm told). Basically, it's meant to be a database agnostic ORM, so you describe the data you want from it, and leave it to work out how best to get it. The theory here is that companies write software that they can easily port to other database vendors without requiring changes to the data layer. In all my years developing, I've only twice ported to different database vendors and an ORM was no use because we ported deliberately to target DB specific features (e.g. Oracle Spatial).

                I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                Forgive your enemies - it messes with their heads

                My blog | My articles | MoXAML PowerToys | Onyx

                M 1 Reply Last reply
                0
                • P peterchen

                  Never thought I'd say that, but... thank you.

                  FILETIME to time_t
                  | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

                  A Offline
                  A Offline
                  AspDotNetDev
                  wrote on last edited by
                  #8

                  Know you can finally wrest in piece.

                  [WikiLeaks Cablegate Cables]

                  R 1 Reply Last reply
                  0
                  • L Lost User

                    My experience with it is somewhat mixed. One one side it can be a real pain to configure it and the crappy documentation does not make it any better. But once you got it working, it's really nice. Still, I prefer the oldfashioned way using stored procedures and setting up entities myself deep within the resource access layer. I just don't like it when some 'smart' framework tries to tell me what and what not to do.

                    "I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011 ---
                    I am endeavoring, Madam, to construct a mnemonic memory circuit using stone knives and bearskins - Mr. Spock 1935 and me 2011

                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #9

                    When I used it last, I ended up wrapping it in Castle ActiveRecord I got that frustrated with it.

                    I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                    Forgive your enemies - it messes with their heads

                    My blog | My articles | MoXAML PowerToys | Onyx

                    L F 2 Replies Last reply
                    0
                    • L Lost User

                      n.podbielski wrote:

                      to now that

                      'know' Its a trickky one, a silent 'k'. As for the SW I have never heard of it though. :)

                      "If climate has not "tipped" in over 4 billion years it's not going to tip now due to mankind." Richard S. Lindzen, Atmospheric Physicist, IPCC "It does not matter who you are, or how smart you are, or what title you have, or how many of you here are, and certainly not how many papers your side has published, if your prediction is wrong then your hypothesis is wrong. Period." Professor Richard Feynman

                      N Offline
                      N Offline
                      n podbielski
                      wrote on last edited by
                      #10

                      fat_boy wrote:

                      'know'

                      Its a trickky one, a silent 'k'.

                      Jeeez... Did you heard anything about mistakes? Everybody make them, you too. ;P Anyway thanks for pointing it out. It's correct now. You should be happy. ;P

                      In soviet Russia code debugs You!

                      L 1 Reply Last reply
                      0
                      • A AspDotNetDev

                        Know you can finally wrest in piece.

                        [WikiLeaks Cablegate Cables]

                        R Offline
                        R Offline
                        Rajesh R Subramanian
                        wrote on last edited by
                        #11

                        AspDotNetDev wrote:

                        Know you can finally wrest in piece.

                        It looks like the US could use a few English teachers. ;P

                        "Real men drive manual transmission" - Rajesh.

                        A G 2 Replies Last reply
                        0
                        • R Rajesh R Subramanian

                          AspDotNetDev wrote:

                          Know you can finally wrest in piece.

                          It looks like the US could use a few English teachers. ;P

                          "Real men drive manual transmission" - Rajesh.

                          A Offline
                          A Offline
                          AspDotNetDev
                          wrote on last edited by
                          #12

                          You only found one incorrect word? :confused:

                          [WikiLeaks Cablegate Cables]

                          R 1 Reply Last reply
                          0
                          • A AspDotNetDev

                            You only found one incorrect word? :confused:

                            [WikiLeaks Cablegate Cables]

                            R Offline
                            R Offline
                            Rajesh R Subramanian
                            wrote on last edited by
                            #13

                            Nope, I found more. That's why the joke icon. It was supposed to be funny, ya know? Looks like a bad joke though. :~

                            "Real men drive manual transmission" - Rajesh.

                            A 1 Reply Last reply
                            0
                            • N n podbielski

                              I am looking for a job right now, so I looked over few offers, and i was surprised how many companies require employees to know that technology. And my question is why? I have read something about that now and before and I don't know what nHibernate have that don't have native for .net SQLinq? Is it better? Or this is because nHibernate work with Java to?

                              In soviet Russia code debugs You!

                              modified on Tuesday, April 5, 2011 12:55 PM

                              E Offline
                              E Offline
                              Ennis Ray Lynch Jr
                              wrote on last edited by
                              #14

                              "With this framework I can develop a framework to develop applications" stolen from the old quote: Software Engineer, a person who when presented with a hammer states, with this hammer I can design a tool to drive nails There is a delusion in the business software world that writing to a database is hard and that scalability is a challenge. Of course, when I see code like Int32.Parse(someValue.ToString()) where some value is itself an int, I am not really surprised at this delusion.

                              Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

                              B B 2 Replies Last reply
                              0
                              • P Pete OHanlon

                                When I used it last, I ended up wrapping it in Castle ActiveRecord I got that frustrated with it.

                                I'm not a stalker, I just know things. Oh by the way, you're out of milk.

                                Forgive your enemies - it messes with their heads

                                My blog | My articles | MoXAML PowerToys | Onyx

                                L Offline
                                L Offline
                                Lost User
                                wrote on last edited by
                                #15

                                Just today I added a tiny baseclass implementing the whole circus around IDisposable and used it to clean up the Dispose() of some of the entities. No big deal at all. Until NHibernate noticed that some entities now had a property that was not declared as virtual. It kept on whining about this and continued to throw exeptions during initialisation. There is no way to tell it to stick with the properties I have mapped and keep clear of stuff I don't want it to put its nose in. And it's no fu**ing Java, so not everything must be virtual. NHibernate must be female. It keeps on nagging and can't accept that some things are none of its business.

                                "I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011 ---
                                I am endeavoring, Madam, to construct a mnemonic memory circuit using stone knives and bearskins - Mr. Spock 1935 and me 2011

                                N 1 Reply Last reply
                                0
                                • R Rajesh R Subramanian

                                  Nope, I found more. That's why the joke icon. It was supposed to be funny, ya know? Looks like a bad joke though. :~

                                  "Real men drive manual transmission" - Rajesh.

                                  A Offline
                                  A Offline
                                  AspDotNetDev
                                  wrote on last edited by
                                  #16

                                  Yeah, I got both senses, but I wasn't sure if you meant the more entertaining self-referential joke or not. :)

                                  [WikiLeaks Cablegate Cables]

                                  1 Reply Last reply
                                  0
                                  • N n podbielski

                                    I am looking for a job right now, so I looked over few offers, and i was surprised how many companies require employees to know that technology. And my question is why? I have read something about that now and before and I don't know what nHibernate have that don't have native for .net SQLinq? Is it better? Or this is because nHibernate work with Java to?

                                    In soviet Russia code debugs You!

                                    modified on Tuesday, April 5, 2011 12:55 PM

                                    J Offline
                                    J Offline
                                    Judah Gabriel Himango
                                    wrote on last edited by
                                    #17

                                    NHibernate is perhaps the oldest and most battle-tested object-relational mapper (ORM) for .NET. If you don't know what ORMs are, or why they're useful, see here[^].

                                    Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon
                                    Judah Himango

                                    L N 2 Replies Last reply
                                    0
                                    • E Ennis Ray Lynch Jr

                                      "With this framework I can develop a framework to develop applications" stolen from the old quote: Software Engineer, a person who when presented with a hammer states, with this hammer I can design a tool to drive nails There is a delusion in the business software world that writing to a database is hard and that scalability is a challenge. Of course, when I see code like Int32.Parse(someValue.ToString()) where some value is itself an int, I am not really surprised at this delusion.

                                      Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

                                      B Offline
                                      B Offline
                                      Brady Kelly
                                      wrote on last edited by
                                      #18

                                      Ennis Ray Lynch, Jr. wrote:

                                      code like Int32.Parse(someValue.ToString()) where some value is itself an int

                                      Ha! That is easily explained. There is no overload of Int32.Parse() that takes an int, so you have to call ToString(), stupid! ;P

                                      1 Reply Last reply
                                      0
                                      • J Judah Gabriel Himango

                                        NHibernate is perhaps the oldest and most battle-tested object-relational mapper (ORM) for .NET. If you don't know what ORMs are, or why they're useful, see here[^].

                                        Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon
                                        Judah Himango

                                        L Offline
                                        L Offline
                                        Lost User
                                        wrote on last edited by
                                        #19

                                        Battle-tested? That's a good way to describe it. The problem is, that the developers have to wage one or another battle against it until they reach some staus quo. Doing everything myself would have been easier on my nerves than making this Diva happy. And its data caching gets a little heavy on the memory side when you have to fetch a greater amount of data. I don't really like to watch when a good server goes to its knees because it's running out of memory. Nope, I don't think this thing is worth the trouble.

                                        "I just exchanged opinions with my boss. I went in with mine and came out with his." - me, 2011 ---
                                        I am endeavoring, Madam, to construct a mnemonic memory circuit using stone knives and bearskins - Mr. Spock 1935 and me 2011

                                        J 1 Reply Last reply
                                        0
                                        • L Lost User

                                          n.podbielski wrote:

                                          to now that

                                          'know' Its a trickky one, a silent 'k'. As for the SW I have never heard of it though. :)

                                          "If climate has not "tipped" in over 4 billion years it's not going to tip now due to mankind." Richard S. Lindzen, Atmospheric Physicist, IPCC "It does not matter who you are, or how smart you are, or what title you have, or how many of you here are, and certainly not how many papers your side has published, if your prediction is wrong then your hypothesis is wrong. Period." Professor Richard Feynman

                                          S Offline
                                          S Offline
                                          Steve Mayfield
                                          wrote on last edited by
                                          #20

                                          my 'k' sticks sometimes too... ;)

                                          Steve _________________ I C(++) therefore I am

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups