I am using Play Framework (1.2.4). I created a UserAccount object, deployed it to Heroku. Excellent. Then I added the isAdmin field to the isAdmin class, deployed it locally, and it worked fine (but I use the built-in database), then I deployed it to Heroku, and now I get the following exception
2011-12-23T09:03:35+00:00 app[web.1]: play.exceptions.JavaExecutionException: org.hibernate.exception.SQLGrammarException: could not load an entity: [models.UserAccount#2] 2011-12-23T09:03:35+00:00 app[web.1]: PersistenceException occured : org.hibernate.exception.SQLGrammarException: could not load an entity: [models.UserAccount#2] ... 2011-12-23T09:03:35+00:00 app[web.1]: Caused by: javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not load an entity: [models.UserAccount#2] 2011-12-23T09:03:35+00:00 app[web.1]: Caused by: org.hibernate.exception.SQLGrammarException: could not load an entity: [models.UserAccount#2] 2011-12-23T09:03:35+00:00 app[web.1]: Caused by: org.postgresql.util.PSQLException: ERROR: column useraccoun0_.isadmin does not exist ...
I searched around to figure out how to do database updates, and the Play website says that Hibernate should handle this for me.
Here are my database properties:
%prod.db=${DATABASE_URL} %prod.jpa.dialect=org.hibernate.dialect.PostgreSQLDialect %prod.jpa.ddl=update
What am I doing wrong? Thanks for the help.
source share