I'd like to add, here is the summary of commands I've issued:
Code:
project --topLevelPackage com.ccs.backoffice
jpa setup --database MYSQL --provider HIBERNATE --userName ccs_app_test --password testtest
database properties set --key database.url -- value database.url=jdbc\:mysql://localhost:3306/ccs_test
database reverse engineer --schema no-schema-required --testAutomatically --package ~.model --activeRecord false
web mvc setup
web mvc all --package ~.web
quit
mvn jetty:run
However, when I browse to http://localhost:8080/backoffice, the following errors occur:
Code:
2012-08-16 12:19:25,858 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in file [/Users/jhall/Workspaces/ccs/backoffice/target/classes/META-INF/spring/applicationContext.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [/Users/jhall/Workspaces/ccs/backoffice/target/classes/META-INF/spring/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: persistenceUnit] Unable to build EntityManagerFactory
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [/Users/jhall/Workspaces/ccs/backoffice/target/classes/META-INF/spring/applicationContext.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: persistenceUnit] Unable to build EntityManagerFactory
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
...
Caused by: org.hibernate.HibernateException: Wrong column type in ccs_test.CardActionCard for column cardActionDate. Found: timestamp, expected: date
at org.hibernate.mapping.Table.validateColumns(Table.java:283)
at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1343)
at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:139)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:378)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:906)
... 69 more
I'm lost at this point.
-Jeff