Forums Register Login

Any use for simple Hibernate examples?

(1 cow)
+Pie Number of slices to send: Send
Hi all,

Would there be any use in me posting some very simple Hibernate examples to this forum? If so, how?

Everything I've learned about Hibernate is quite impressive, and I think everybody should be using it. Toward that goal, I want to lubricate the learning process so others can learn it quickly.

There seems to be huge number of Hibernate examples out there. Unfortunately, they are so complicated that the reader has be be already familiar with Hibernate to understand what parts of the example are relevant to the concept at hand and which part are just the author trying to show something that I don't care about.

I think the best way to learn a tool is to see fully worked-out examples that focus on one concept, and just one concept, and strip away everything that doesn't support that one concept. Strip away Maven. Strip away Ant. Strip away web servers. Strip away all unnecessary application logic. Strip away useful utilities that don't support the one concept. Just illustrate one concept.

And make sure the example code runs stand-alone, so the reader can see everything that needs to happen. That way if it doesn't run, the reader will know that it is a problem in the setup, not something wrong with his/her understanding of the concept.

In my struggles I have been building such examples, to make sure I understand the concepts. I have built 'distilled' examples for:

  • POJO
  • Simple one-to-many associations
  • Inner classes
  • Eager loading
  • Lazy loading
  • Cascade saving
  • Tree structure
  • Embedded classes
  • final classes and final instance variables
  • Simple container
  • +Pie Number of slices to send: Send
    Sure, post them in the Blog Around the Campfire forum.
    +Pie Number of slices to send: Send
    I've made a first attempt. See my Hibernate examples.
    +Pie Number of slices to send: Send
    Christopher,
    You have great ideas! Strongly appreciated!
    +Pie Number of slices to send: Send
    If that doesn't deserve a cow, I don't know what does.

    cow granted.
    I'm just a poor boy, I need no sympathy, because I'm easy come, easy go, little high, little low, little ad
    a bit of art, as a gift, that will fit in a stocking
    https://gardener-gift.com


    reply
    reply
    This thread has been viewed 917 times.
    Similar Threads
    Grails 1.1 Web Application Development
    Prerequisite to understand spring and hibernate frameworks.
    NoSQL Distilled: A Brief Guide to the Emerging World of Polyglot Persistence
    New to Programming; Figured I'd start with Java
    ORM Patterns/Data structure question
    More...

    All times above are in ranch (not your local) time.
    The current ranch time is
    Mar 28, 2024 13:05:51.