add entities class
add entitymanagerfactory property to mainframe