When I saw Query.getSingleResult() I thought, "yes, great idea, I always have to add an utility method like that..."
But then, I met NoResultException... what a great way to screw a great idea!
Why not just return null??!!! getSingleResult should return 1 element, or null if it can not find stuff!
This blog will be about... Software Engineering... Object Oriented Analysis... Database Development, etc
I believe that imagination is stronger than knowledge -- myth is more potent than history -- dreams are more powerful than facts -- hope always triumphs over experience -- laughter is the cure for grief -- love is stronger than death.
Subscribe to:
Post Comments (Atom)
Requirements Analysis: Negative Space
A while ago, I was part of a team working on a crucial project. We were confident, relying heavily on our detailed plans and clear-cut requi...
-
In Java, first we had servlets , and each one of them answered to request made to a particular url ( or an url matching a particular express...
-
That seems like a very simple question: "When will feature "X" be finished?", specially if do not have a lot of experie...
-
JPA Myth: EclipseLink and Hibernate are compatible. Not true: Hibernate does NOT follow the JPA SpecPlease take a look at the Hibernate JIRA issue EJB-441 , seen it? Now, please tell me if this is correct: According to Gavin King (autho...
No comments:
Post a Comment