-
Fun With Hibernate Inheritance
(Recovered from my old Blog). I had a relatively simple requirement, with a relatively simple solution – but it is worth recording for simple reference. Suppose I have two Hibernate classes Cat and Dog, both of which derive from the abstract class Animal. Suppose further that both Cats and Dogs can have a child collection […]
-
Django Homepage With Multiple Apps
After completing the Django tutorial, I was a little confused as to how one is supposed to structure the homepage for a web application containing multiple applications. There seem to be three common approaches: Flatpages – https://docs.djangoproject.com/en/dev/ref/contrib/flatpages/ Create a separate dedicated app Create a new views.py in the “project” folder which contains your settings.py Flatpages […]