Any use for simple Hibernate examples?
posted 11 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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
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:
posted 11 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Sure, post them in the Blog Around the Campfire forum.
Christopher Rygaard
Ranch Hand
Posts: 42
3
posted 11 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I've made a first attempt. See my Hibernate examples.
posted 11 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Christopher,
You have great ideas! Strongly appreciated!
You have great ideas! Strongly appreciated!
posted 11 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
If that doesn't deserve a cow, I don't know what does.
cow granted.
cow granted.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
| Are we home yet? Wait, did we forget the tiny ad? The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |













