Rails and JPA (Instead of ActiveRecord)