We all want our interactions with the database to be successful. And most demos and code samples have everything going hunky dory. But what happens if they're not? What if you or the database needs to roll back the transaction? With JPA, if you're not careful, things can get pretty ugly.
Here it is from the horse's mouth:
3.3.2 Transaction Rollback
For both transaction-scoped and...
Years back I took a three week training on OO modeling using the Shlaer-Mellor method, which has now been pretty much subsumed by UML. One thing I spent a lot of time doing was designing the behavior of a system using state diagrams.
Fast forward to 2007, and I'm trying to get my head around REST. I like it, but I don't know why sometimes -- it seems too simplistic to capture rich application...
Now we know what is going on when we move our mouse arrow around. A genius Japanese computer programmer has built a magnifying glass web page so we can see for ourselves. Poor fellas...
http://www.1-click.jp
JPA is generally easier than JDBC, but that doesn't mean it doesn't have "interesting" details and complexity.
Michael Bouschen provides some very useful information in the area of SELECT statements and their return types.
Thanks, Michael!
I'm working with a team that is working on providing tooling in NetBeans that lets you map database entities to REST resources. At first blush it looks like a very nice, simple mapping. REST is about resources. On each resource you can perform basic CRUD (Create, Read, Update, Delete) operations using the basic HTTP verbs POST, GET, PUT and DELETE.
So it seems pretty obvious: map each table...
I just got the news that, as of today,
Java SE 6, Glassfish v1,
On one of my walks through Berkeley (the bumper sticker capital of the world) I encountered this bumper sticker:
I just returned from a week in Mexico, a wonderful time with my family where
we lived very simply - food, rest, physical fun. No TV, no movies, no
cell phones, no computers. Bright sunshine, beautiful beaches, very
friendly people wherever we went.
Then I came home to San Francisco and straight to the
Web 2.0 Expo.
The contrast has been a bit disorienting. I don't think it's a surprise...
I am working on a blog entry about Sun SPOTs. I had gotten about ten minutes into it when BAM Firefox crashed.
I restarted Firefox. I recently upgraded to 2.0, so it asked me if I wanted to restore my old session. Sure, I said. Was I surprised to find out that not only did it bring up my blog entry page, but it also remembered *every word* I had typed before the crash. Wow. It's these...
Last month was a miserable month for me in terms of my working environment. I like to work at cafes, and one day I got up, tripped over my power cord, and pulled my entire laptop down BANG upon a nice hard cement floor.
Heads turned, sharp inturns of breath all around. As I picked it gently up and took a look at the screen, my poor little PC made the computer equivalent sounds of a death...