Added Annotations and made classes Serializable so that the ORM mapping would correctly insert into the database.