Server Code

Code for the server excluding the persistence.xml.