John Lam 1997 — 2026

.NET Pet Shop

I just started looking at .NET Pet Shop today. My near-term goal is to reimplement .NET Pet Shop using code generation techniques. Given the hype that was given this application and its J2EE counterpart, the Java Pet Store, one would have expected to have found a reasonably well thought-out application. I think I expected too much.

The Pet Shop / Pet Store database schema is just plain awful. For a nice summary of what’s broken in the database schema, see the excellent writeup from Deklarit that describes their re-implementation of .NET Pet Shop using their code generation product. The first thing they had to do, however, was to fix the database schema. Most likely I’ll start with their database schema; I just can’t bear to take another look at the original schema!

6 archived reader comments

Jimmy Nilsson (2003-05-21)

Hi John, What’s your analysis about the reason for the poor database design in the initial Java Pet Shop? Best Regards, Jimmy

Ricky Datta (2003-05-22)

Perhaps my tool is useful for your petshop project ? Please check it out. Thanks Ricky

Alexis Smirnov (2003-05-23)

John, Let me though another tool at you - xsd2db http://xsd2db.sf.net

Anonymous (2003-05-26)

Hi, Are you talking about the PetShop 3.0 ? http://www.middleware-company.com/casestudy/msPetShop3.2.zip

John Lam (2003-05-26)

Jimmy, the DeKlarit paper really says it all. There’s not much more that I can add to it.

John Lam (2003-05-26)

Alexis, thanks for posting your code! I’m going to definitely check it out and email you with some comments later this week. I’m still in the middle of a Movable Type migration right now