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. General Programming
  3. Design and Architecture
  4. Hibernate-style coding?

Hibernate-style coding?

Scheduled Pinned Locked Moved Design and Architecture
javaquestion
5 Posts 2 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
    NandoMan
    wrote on last edited by
    #1

    Hello guys, What was the name of the coding style used a lot in Hibernate? I mean, where you would have several calls in one single instruction, as in:

    SomeType obj = SomeClass.createInstance()
    .SomeMethod()
    .SomeOtherMethod()
    .OneLastMethod();

    I remember reading an article somewhere on the internet, but i can't find it back. Thanks!

    N C 2 Replies Last reply
    0
    • N NandoMan

      Hello guys, What was the name of the coding style used a lot in Hibernate? I mean, where you would have several calls in one single instruction, as in:

      SomeType obj = SomeClass.createInstance()
      .SomeMethod()
      .SomeOtherMethod()
      .OneLastMethod();

      I remember reading an article somewhere on the internet, but i can't find it back. Thanks!

      N Offline
      N Offline
      NandoMan
      wrote on last edited by
      #2

      Nevermind, the term I'm looking for is "Method chaining"

      1 Reply Last reply
      0
      • N NandoMan

        Hello guys, What was the name of the coding style used a lot in Hibernate? I mean, where you would have several calls in one single instruction, as in:

        SomeType obj = SomeClass.createInstance()
        .SomeMethod()
        .SomeOtherMethod()
        .OneLastMethod();

        I remember reading an article somewhere on the internet, but i can't find it back. Thanks!

        C Offline
        C Offline
        Curtis Schlak
        wrote on last edited by
        #3

        If the chain reads like natural language, then the term for it now-a-days is "fluent programming."

        "we must lose precision to make significant statements about complex systems." -deKorvin on uncertainty

        N 1 Reply Last reply
        0
        • C Curtis Schlak

          If the chain reads like natural language, then the term for it now-a-days is "fluent programming."

          "we must lose precision to make significant statements about complex systems." -deKorvin on uncertainty

          N Offline
          N Offline
          NandoMan
          wrote on last edited by
          #4

          Wow man, you are right that was the exact term I was looking for!

          C 1 Reply Last reply
          0
          • N NandoMan

            Wow man, you are right that was the exact term I was looking for!

            C Offline
            C Offline
            Curtis Schlak
            wrote on last edited by
            #5

            Glad I could help!

            "we must lose precision to make significant statements about complex systems." -deKorvin on uncertainty

            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