Create an entity class to use mysql like NOSQL way.