Add Session class and crud services, add @XmlRootElement and change foreign keys from int to Integer to insert null values.