Rewrote entities, added ORM, changed Spring config.