Converted to gradle build
Added equals and hash code to all entities