You may want to use a sequence, because it's possible to have multiple GroceryLists in the database at the same time and you don't want collisions, I'm assuming.