Made Post an entity and added it in persistence.xml.